Explorar o código

Fix selectAll for angular upgrade

James Allen %!s(int64=11) %!d(string=hai) anos
pai
achega
c75cdf24b5
Modificáronse 1 ficheiros con 3 adicións e 9 borrados
  1. 3 9
      services/web/public/coffee/directives/selectAll.coffee

+ 3 - 9
services/web/public/coffee/directives/selectAll.coffee

@@ -5,20 +5,14 @@ define [
 		return {
 			controller: ["$scope", ($scope) ->
 				# Selecting or deselecting all should apply to all projects
-				selectAll = () ->
+				@selectAll = () ->
 					$scope.$broadcast "select-all:select"
 
-				deselectAll = () ->
+				@deselectAll = () ->
 					$scope.$broadcast "select-all:deselect"
 
-				clearSelectAllState = () ->
+				@clearSelectAllState = () ->
 					$scope.$broadcast "select-all:clear"
-
-				return {
-					clearSelectAllState: clearSelectAllState
-					selectAll: selectAll
-					deselectAll: deselectAll
-				}
 			]
 			link: (scope, element, attrs) ->