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}'`;
obj = `[✂${this.value.node.object.start}-${this.value.node.object.end}✂]`;
} else {
const { name } = getObject(this.value.node);
obj = 'ctx';
prop = `'${this.name}'`;
prop = `'${name}'`;
}
this.obj = obj;

Loading…
Cancel
Save