diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 1c0f331f..e7bdc414 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -348,7 +348,7 @@ function $RootScopeProvider(){ // the while loop reads in reverse order. array.unshift(watcher); - return function() { + return function deregisterWatch() { arrayRemove(array, watcher); lastDirtyWatch = null; };