We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2267dd4 commit 17b4e4bCopy full SHA for 17b4e4b
src/ng/parse.js
@@ -1894,13 +1894,9 @@ function $ParseProvider() {
1894
function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) {
1895
var unwatch;
1896
return unwatch = scope.$watch(function constantWatch(scope) {
1897
- return parsedExpression(scope);
1898
- }, function constantListener(value, old, scope) {
1899
- if (isFunction(listener)) {
1900
- listener.apply(this, arguments);
1901
- }
1902
unwatch();
1903
- }, objectEquality);
+ return parsedExpression(scope);
+ }, listener, objectEquality);
1904
}
1905
1906
function addInterceptor(parsedExpression, interceptorFn) {
0 commit comments