Fixing watchers in issue detail

stable
Alejandro Alonso 2014-07-02 13:02:44 +02:00
parent bc8c614686
commit e4d0575b47
1 changed files with 2 additions and 4 deletions

View File

@ -210,9 +210,7 @@ WatchersDirective = ($rootscope, $confirm) ->
link = ($scope, $el, $attrs, $model) -> link = ($scope, $el, $attrs, $model) ->
editable = $attrs.editable? editable = $attrs.editable?
watcherIds = [] watcherIds = []
$scope.$watch $attrs.ngModel, (val) -> $scope.$watch $attrs.ngModel, (watcherIds) ->
watcherIds = val
if watcherIds?
renderWatchers($scope, $el, watcherIds, editable) renderWatchers($scope, $el, watcherIds, editable)
if not editable if not editable