Browse Source

fix static node v-for nested check

dev
Evan You 8 years ago
parent
commit
ea39d9f6b8
  1. 2
      src/compiler/optimizer.js

2
src/compiler/optimizer.js

@ -57,7 +57,7 @@ function markStaticRoots (node: ASTNode, isInFor: boolean) {
}
if (node.children) {
for (let i = 0, l = node.children.length; i < l; i++) {
markStaticRoots(node.children[i], !!node.for)
markStaticRoots(node.children[i], isInFor || !!node.for)
}
}
}

Loading…
Cancel
Save