fix component binding initialisation

pull/1367/head
Rich Harris 7 years ago
parent 8de4145cb2
commit 4e705d2cb7

@ -41,8 +41,9 @@ export default class Binding extends Node {
if (!this.value.node.computed) prop = `'${prop}'`; if (!this.value.node.computed) prop = `'${prop}'`;
obj = `[✂${this.value.node.object.start}-${this.value.node.object.end}✂]`; obj = `[✂${this.value.node.object.start}-${this.value.node.object.end}✂]`;
} else { } else {
const { name } = getObject(this.value.node);
obj = 'ctx'; obj = 'ctx';
prop = `'${this.name}'`; prop = `'${name}'`;
} }
this.obj = obj; this.obj = obj;

Loading…
Cancel
Save