mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Avoid implicitly returning from a directive controller constructor function.
This commit is contained in:
parent
ddee75e479
commit
33be384206
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,7 @@ define [
|
|||
|
||||
@clearSelectAllState = () ->
|
||||
$scope.$broadcast "select-all:clear"
|
||||
return
|
||||
]
|
||||
link: (scope, element, attrs) ->
|
||||
|
||||
|
@ -63,6 +64,8 @@ define [
|
|||
ignoreChanges = true
|
||||
scope.$apply () ->
|
||||
scope.ngModel = !scope.ngModel
|
||||
if !scope.ngModel
|
||||
selectAllListController.clearSelectAllState()
|
||||
ignoreChanges = false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue