pull/3945/head
Rich Harris 6 years ago
parent 0ad02a5097
commit fb732e5b5b

@ -303,7 +303,7 @@ export default class Block {
let changed: Identifier | ArrayPattern = { type: 'Identifier', name: '#changed' }; let changed: Identifier | ArrayPattern = { type: 'Identifier', name: '#changed' };
if (!this.renderer.context_overflow && !this.parent) { if (!this.renderer.context_overflow && !this.parent) {
changed = { type: 'ArrayPattern', elements: [changed] } changed = { type: 'ArrayPattern', elements: [changed] };
} }
properties.update = x`function #update(${ctx}, ${changed}) { properties.update = x`function #update(${ctx}, ${changed}) {

@ -195,7 +195,7 @@ export default class Renderer {
changed(names, is_reactive_declaration = false): Expression { changed(names, is_reactive_declaration = false): Expression {
const renderer = this; const renderer = this;
let changed = (is_reactive_declaration const changed = (is_reactive_declaration
? x`$$self.$$.dirty` ? x`$$self.$$.dirty`
: x`#changed`) as Identifier | MemberExpression; : x`#changed`) as Identifier | MemberExpression;

Loading…
Cancel
Save