From 69e1e1907d7e598b3c3ed613586e5d9c3e7d8602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Mon, 11 Aug 2014 17:37:33 +0100 Subject: [PATCH] Use strict angular dependency injection Prerequisite for proper minification --- js/glowingbear.js | 13 +++++++------ js/localstorage.js | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/js/glowingbear.js b/js/glowingbear.js index 98a96ae..717b16e 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -1320,7 +1320,7 @@ weechat.config(['$routeProvider', ]); -weechat.directive('plugin', function($rootScope) { +weechat.directive('plugin', ['$rootScope', function($rootScope) { /* * Plugin directive * Shows additional plugin content @@ -1373,10 +1373,10 @@ weechat.directive('plugin', function($rootScope) { } } }; -}); +}]); -weechat.directive('inputBar', function() { +weechat.directive('inputBar', ['$rootScope', function() { return { @@ -1386,7 +1386,8 @@ weechat.directive('inputBar', function() { inputId: '@inputId' }, - controller: function($rootScope, + controller: ['$rootScope', '$scope', '$log', 'connection', 'models', + function($rootScope, $scope, $element, $log, @@ -1666,6 +1667,6 @@ weechat.directive('inputBar', function() { return true; } }; - } + }] }; -}); +}]); diff --git a/js/localstorage.js b/js/localstorage.js index 7c3e3b2..5909bf8 100644 --- a/js/localstorage.js +++ b/js/localstorage.js @@ -3,7 +3,7 @@ var ls = angular.module('localStorage',[]); -ls.factory("$store",function($parse){ +ls.factory("$store", ["$parse", function($parse){ /** * Global Vars */ @@ -113,5 +113,5 @@ ls.factory("$store",function($parse){ } }; return publicMethods; -}); +}]); })();