From ea39d9f6b8220d24320fdef08070a01b94f241c6 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 12 Oct 2016 16:31:56 -0400 Subject: [PATCH] fix static node v-for nested check --- src/compiler/optimizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/optimizer.js b/src/compiler/optimizer.js index 42e24215..ba4288cb 100644 --- a/src/compiler/optimizer.js +++ b/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) } } }