From ae660f9ff9e0e64cc59365197f69c8eeb6caaec3 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Wed, 29 Mar 2017 12:03:48 -0400 Subject: [PATCH] remove surplus `root.` prefix --- src/generators/dom/visitors/attributes/addComponentBinding.js | 2 +- test/generator/samples/component-binding-deep/_config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generators/dom/visitors/attributes/addComponentBinding.js b/src/generators/dom/visitors/attributes/addComponentBinding.js index 980e8f511855..5b740aa29fd9 100644 --- a/src/generators/dom/visitors/attributes/addComponentBinding.js +++ b/src/generators/dom/visitors/attributes/addComponentBinding.js @@ -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}'`; diff --git a/test/generator/samples/component-binding-deep/_config.js b/test/generator/samples/component-binding-deep/_config.js index eb8e489de616..1dda0f5bbd69 100644 --- a/test/generator/samples/component-binding-deep/_config.js +++ b/test/generator/samples/component-binding-deep/_config.js @@ -16,7 +16,7 @@ export default {

blah

` ); - + component.destroy(); } };