diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 030e0b05c248..de1514853175 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -400,11 +400,7 @@ function $RootScopeProvider(){ deregisterFns.push(self.$watch(watchGroupFn, function () { listener(newValues, oldValues, self); - if (unwatchCount === 0) { - watchGroupFn.$$unwatch = true; - } else { - watchGroupFn.$$unwatch = false; - } + watchGroupFn.$$unwatch = unwatchCount === 0 ? true : false; })); return function deregisterWatchGroup() {