fix component binding initialisation

pull/7738/head
Rich Harris 8 years ago
parent 0f3cc8979c
commit 772746fee4

@ -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