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

Commit 0706760

Browse files
committed
fixup! rename deepWatch variable
1 parent 3d81cee commit 0706760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/compile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3508,14 +3508,14 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
35083508
if (optional && !attrs[attrName]) break;
35093509

35103510
parentGet = $parse(attrs[attrName]);
3511-
var deepWatch = parentGet.literal;
3511+
var isLiteral = parentGet.literal;
35123512

35133513
var initialValue = destination[scopeName] = parentGet(scope);
35143514
initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]);
35153515

35163516
removeWatch = scope.$watch(parentGet, function parentValueWatchAction(newValue, oldValue) {
35173517
if (oldValue === newValue) {
3518-
if (oldValue === initialValue || (deepWatch && equals(oldValue, initialValue))) {
3518+
if (oldValue === initialValue || (isLiteral && equals(oldValue, initialValue))) {
35193519
return;
35203520
}
35213521
oldValue = initialValue;

0 commit comments

Comments
 (0)