mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-13 22:39:59 +08:00
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:
committed by
Caitlin Potter
parent
b3047b9dc9
commit
a001a417d5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user