remove surplus `root.` prefix

pull/429/head
Rich-Harris 8 years ago
parent 6eb96aadb8
commit ae660f9ff9

@ -22,7 +22,7 @@ export default function createBinding ( generator, node, attribute, current, loc
prop = current.indexNames.get( name );
} else if ( attribute.value.type === 'MemberExpression' ) {
prop = `'[✂${attribute.value.property.start}-${attribute.value.property.end}✂]'`;
obj = `root.[✂${attribute.value.object.start}-${attribute.value.object.end}✂]`;
obj = `[✂${attribute.value.object.start}-${attribute.value.object.end}✂]`;
} else {
obj = 'root';
prop = `'${name}'`;

@ -16,7 +16,7 @@ export default {
<input>
<p>blah</p>
` );
component.destroy();
}
};

Loading…
Cancel
Save