Skip to content

Commit 769c2f4

Browse files
committed
check for watch initialisation #246
1 parent 74a58ce commit 769c2f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/angular-meteor-reactive-scope.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ angularMeteorReactiveScope.run(['$rootScope', '$parse', function($rootScope, $pa
1717

1818
self.$watch(function() {
1919
return getValue(self)
20-
}, function() {
21-
self.$$trackerDeps[property].changed();
20+
}, function(newVal, oldVal) {
21+
if (newVal !== oldVal) {
22+
self.$$trackerDeps[property].changed();
23+
}
2224
});
2325
}
2426

0 commit comments

Comments
 (0)