Bläddra i källkod

only recursively _digest non-isolated children

Evan You 11 år sedan
förälder
incheckning
f24bda7e0a
1 ändrade filer med 8 tillägg och 3 borttagningar
  1. 8 3
      src/instance/scope.js

+ 8 - 3
src/instance/scope.js

@@ -118,10 +118,15 @@ exports._digest = function () {
   while (i--) {
     this._watcherList[i].update()
   }
-  if (this._children) {
-    i = this._children.length
+  var children = this._children
+  var child
+  if (children) {
+    i = children.length
     while (i--) {
-      this._children[i]._digest()
+      child = children[i]
+      if (!child.$options.isolated) {
+        child._digest()
+      }
     }
   }
 }