From 33be384206266ae09bc1519041c4f0436108c468 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Wed, 21 Jun 2017 16:00:56 +0100 Subject: [PATCH] Avoid implicitly returning from a directive controller constructor function. --- services/web/public/coffee/directives/selectAll.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/public/coffee/directives/selectAll.coffee b/services/web/public/coffee/directives/selectAll.coffee index 6400d2d0ad..4194d050e8 100644 --- a/services/web/public/coffee/directives/selectAll.coffee +++ b/services/web/public/coffee/directives/selectAll.coffee @@ -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 }