From 0537b170cfbb306bf7bfb4af6b39e826557a7c46 Mon Sep 17 00:00:00 2001 From: Pedro Reys Date: Mon, 21 Apr 2014 23:23:47 -0500 Subject: [PATCH] make directive able to be minified --- app/js/directives.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/js/directives.js b/app/js/directives.js index 54db449..7feef87 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -3,7 +3,7 @@ angular.module('app.directives', []) // Main directive, that just publish a controller - .directive('frangTree', function ($parse, $animate) { + .directive('frangTree', ['$parse', '$animate', function ($parse, $animate) { return { restrict: 'EA', controller: function($scope, $element) { @@ -13,9 +13,9 @@ angular.module('app.directives', []) }; } }; - }) + }]) - .directive('frangTreeRepeat', function ($parse, $animate) { + .directive('frangTreeRepeat', ['$parse', '$animate', function ($parse, $animate) { // ---------- Some necessary internal functions from angular.js ---------- @@ -367,7 +367,7 @@ angular.module('app.directives', []) } }; - }) + }]) .directive('frangTreeInsertChildren', function () { return { @@ -382,7 +382,7 @@ angular.module('app.directives', []) }; }) - .directive('frangTreeDrag', function($parse) { + .directive('frangTreeDrag', ['$parse', function($parse) { return { restrict: 'A', require: '^frangTree', @@ -414,9 +414,9 @@ angular.module('app.directives', []) ); } }; - }) + }]) - .directive('frangTreeDrop', function($parse) { + .directive('frangTreeDrop', ['$parse', function($parse) { return { restrict: 'A', require: '^frangTree', @@ -480,5 +480,4 @@ angular.module('app.directives', []) ); } } - }); - + }]); \ No newline at end of file