Skip to content

Commit e6ce465

Browse files
committed
Fixes one bind tests failing with Angular 1.2
The $scope.$watch used `===` for equality comparisons by default and 1.3 uses `angular.equals`. The desired behaior is acheived using `angular.equals`.
1 parent aa97ecd commit e6ce465

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/core/directives/ui-grid-one-bind.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@
302302
//Removes the watcher on itself after the bind
303303
rmWatcher();
304304
}
305-
}); //End rm watchers
305+
// True ensures that equality is determined using angular.equals instead of ===
306+
}, true); //End rm watchers
306307
} //End compile function
307308
}; //End directive return
308309
} // End directive function

0 commit comments

Comments
 (0)