From 3967f5f7d6c8aa7b41a5352b12f457e2fbaa251a Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 22 Jul 2013 08:59:20 -0700 Subject: fix(Scope): ensure that isolate scopes use the main evalAsync queue Previously any $evalAsync task scheduled from a isolate scope or a child of an isolate scope would never execute because we never flushed this queue --- src/ng/rootScope.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 06609862..2e76d6ee 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -165,6 +165,8 @@ function $RootScopeProvider(){ if (isolate) { child = new Scope(); child.$root = this.$root; + // ensure that there is just one async queue per $rootScope and it's children + child.$$asyncQueue = this.$$asyncQueue; } else { Child = function() {}; // should be anonymous; This is so that when the minifier munges // the name it does not become random set of chars. These will then show up as class -- cgit v1.2.3