Explorar o código

kernel: Update detachedRootClasses by classes().filter(...).

Herbert Vojčík %!s(int64=7) %!d(string=hai) anos
pai
achega
61cf9fd99b
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      support/kernel-runtime.js

+ 3 - 1
support/kernel-runtime.js

@@ -63,8 +63,10 @@ define(function () {
         var detachedRootClasses = [];
 
         function markClassDetachedRoot(klass) {
-            detachedRootClasses.addElement(klass);
             klass.detachedRoot = true;
+            detachedRootClasses = classes().filter(function (klass) {
+                return klass.detachedRoot;
+            });
         }
 
         this.detachedRootClasses = function () {