Skip to content

Commit

Permalink
remove surplus root. prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Mar 29, 2017
1 parent 6eb96aa commit ae660f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}'`;
Expand Down
2 changes: 1 addition & 1 deletion test/generator/samples/component-binding-deep/_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
<input>
<p>blah</p>
` );

component.destroy();
}
};

0 comments on commit ae660f9

Please sign in to comment.