mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Avoid implicitly returning from a directive controller constructor function.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user