(js) Improve $scope.$watch

This commit is contained in:
Francis Lachapelle committed 2016-06-07 11:08:06 -04:00
1 parent cebd79a66e
commit 77ce13967c
3 files changed
+7 -6

No files matched your search

@@ -348,7 +348,7 @@
vm.saveProperties = saveProperties;
vm.close = close;
$scope.$watch('properties.calendar.color', function() {
$scope.$watch(function() { return vm.calendar.color; }, function() {
srcCalendar.color = vm.calendar.color;
});