fix some transition stuff

pull/3539/head
Richard Harris 6 years ago
parent d386efdb0d
commit 3f2f1b1dbd

@ -539,7 +539,7 @@ export default class EachBlockWrapper extends Wrapper {
// We declare `i` as block scoped here, as the `remove_old_blocks` code
// may rely on continuing where this iteration stopped.
const update = b`
${!this.block.has_update_method && `const #old_length = ${this.vars.each_block_value}.length;`}
${!this.block.has_update_method && b`const #old_length = ${this.vars.each_block_value}.length;`}
${this.vars.each_block_value} = ${snippet};
let #i;

@ -4,7 +4,7 @@ export default {
things: ['a']
},
test({ assert, component, target, window, raf }) {
test({ assert, component, target, raf }) {
component.x = true;
const div = target.querySelector('div');

Loading…
Cancel
Save