From 6f1272694899c31324583f2adc38b66dbe79d77f Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Thu, 5 Jan 2017 20:17:30 +0100 Subject: [PATCH] do not redefine each item, as noted in #209 --- src/generators/dom/visitors/EachBlock.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/generators/dom/visitors/EachBlock.js b/src/generators/dom/visitors/EachBlock.js index 13bf576a5b..6aebb15781 100644 --- a/src/generators/dom/visitors/EachBlock.js +++ b/src/generators/dom/visitors/EachBlock.js @@ -207,15 +207,6 @@ export default { builders: getBuilders(), getUniqueName: generator.getUniqueNameMaker() }); - - Object.keys( contexts ).forEach( contextName => { - const listName = listNames[ contextName ]; - const indexName = indexNames[ contextName ]; - - generator.current.builders.update.addLine( - `var ${contextName} = ${listName}[${indexName}];` - ); - }); }, leave ( generator ) {