Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f1d0f03

Browse files
committed
refactor($parse): make use of local variable instead of refetching property
1 parent b0f6afc commit f1d0f03

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ng/parse.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1942,9 +1942,8 @@ function $ParseProvider() {
19421942

19431943
// Propagate $$watchDelegates other then inputsWatchDelegate
19441944
useInputs = !parsedExpression.inputs;
1945-
if (parsedExpression.$$watchDelegate &&
1946-
parsedExpression.$$watchDelegate !== inputsWatchDelegate) {
1947-
fn.$$watchDelegate = parsedExpression.$$watchDelegate;
1945+
if (watchDelegate && watchDelegate !== inputsWatchDelegate) {
1946+
fn.$$watchDelegate = watchDelegate;
19481947
fn.inputs = parsedExpression.inputs;
19491948
} else if (!interceptorFn.$stateful) {
19501949
// If there is an interceptor, but no watchDelegate then treat the interceptor like

0 commit comments

Comments
 (0)