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

Commit 1fecb6f

Browse files
committed
fixup! aslo remove deep watch logic from within watcher method
1 parent 65ff861 commit 1fecb6f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ng/compile.js

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

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

35133512
var initialValue = destination[scopeName] = parentGet(scope);
35143513
initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]);
35153514

35163515
removeWatch = scope.$watch(parentGet, function parentValueWatchAction(newValue, oldValue) {
35173516
if (oldValue === newValue) {
3518-
if (oldValue === initialValue || (deepWatch && equals(oldValue, initialValue))) {
3517+
if (oldValue === initialValue) {
35193518
return;
35203519
}
35213520
oldValue = initialValue;

0 commit comments

Comments
 (0)