diff --git a/app/coffee/modules/issues/detail.coffee b/app/coffee/modules/issues/detail.coffee index 108a4246..f5377157 100644 --- a/app/coffee/modules/issues/detail.coffee +++ b/app/coffee/modules/issues/detail.coffee @@ -210,10 +210,8 @@ WatchersDirective = ($rootscope, $confirm) -> link = ($scope, $el, $attrs, $model) -> editable = $attrs.editable? watcherIds = [] - $scope.$watch $attrs.ngModel, (val) -> - watcherIds = val - if watcherIds? - renderWatchers($scope, $el, watcherIds, editable) + $scope.$watch $attrs.ngModel, (watcherIds) -> + renderWatchers($scope, $el, watcherIds, editable) if not editable $el.find(".add-watcher").remove()