From 7babd29085f85e53a570f8554156dee0138b1c93 Mon Sep 17 00:00:00 2001 From: Leonidas Arvanitis Date: Fri, 9 Oct 2015 14:15:27 +0300 Subject: [PATCH] Fix minification of angular directive Explicitly set injectables in `jqueryScrollbar` directive so that it survives after variable mangling minification (uglify etc.). --- jquery.scrollbar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery.scrollbar.js b/jquery.scrollbar.js index f78962b..bd82315 100644 --- a/jquery.scrollbar.js +++ b/jquery.scrollbar.js @@ -763,7 +763,7 @@ } }; }) - .directive('jqueryScrollbar', function (jQueryScrollbar, $parse) { + .directive('jqueryScrollbar', ['jQueryScrollbar', '$parse', function (jQueryScrollbar, $parse) { return { "restrict": "AC", "link": function (scope, element, attrs) { @@ -775,7 +775,7 @@ }); } }; - }); + }]); })(window.angular); } -})); \ No newline at end of file +}));