fix(Scope): add deregisterNotifier to oneTimeLiteralWatch signature

A reverted commit removed deregisterNotifier from the arguments that would be passed
to a watcherFn.
This commit is contained in:
Jeff Cross
2014-08-08 14:52:40 -07:00
committed by Caitlin Potter
parent b3047b9dc9
commit a001a417d5

View File

@@ -1054,7 +1054,7 @@ function $ParseProvider() {
}, objectEquality, deregisterNotifier);
}
function oneTimeLiteralWatch(scope, listener, objectEquality, parsedExpression) {
function oneTimeLiteralWatch(scope, listener, objectEquality, deregisterNotifier, parsedExpression) {
var unwatch;
return unwatch = scope.$watch(function oneTimeWatch(scope) {
return parsedExpression(scope);