(js) Improve $scope.$watch

This commit is contained in:
Francis Lachapelle
2016-06-07 11:08:06 -04:00
parent cebd79a66e
commit 77ce13967c
3 changed files with 7 additions and 6 deletions
@@ -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;
});