aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/scope.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/scope.js')
-rw-r--r--src/service/scope.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service/scope.js b/src/service/scope.js
index cbda4495..d6cf60c9 100644
--- a/src/service/scope.js
+++ b/src/service/scope.js
@@ -381,11 +381,11 @@ function $RootScopeProvider(){
}
} while ((current = next));
- if(!(ttl--)) {
+ if(dirty && !(ttl--)) {
throw Error('100 $digest() iterations reached. Aborting!\n' +
'Watchers fired in the last 5 iterations: ' + toJson(watchLog));
}
- } while (dirty);
+ } while (dirty || asyncQueue.length);
},
/**