chore(Scope): name the $watch deregistration function as

This commit is contained in:
Igor Minar
2014-04-07 16:07:14 -07:00
parent 7839330b40
commit b04d3a8ec6

View File

@@ -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;
};