Use strict angular dependency injection

Prerequisite for proper minification
This commit is contained in:
Lorenz Hübschle-Schneider 2014-08-11 17:37:33 +01:00
parent aef707a12f
commit 69e1e1907d
2 changed files with 9 additions and 8 deletions

View file

@ -1320,7 +1320,7 @@ weechat.config(['$routeProvider',
]); ]);
weechat.directive('plugin', function($rootScope) { weechat.directive('plugin', ['$rootScope', function($rootScope) {
/* /*
* Plugin directive * Plugin directive
* Shows additional plugin content * Shows additional plugin content
@ -1373,10 +1373,10 @@ weechat.directive('plugin', function($rootScope) {
} }
} }
}; };
}); }]);
weechat.directive('inputBar', function() { weechat.directive('inputBar', ['$rootScope', function() {
return { return {
@ -1386,7 +1386,8 @@ weechat.directive('inputBar', function() {
inputId: '@inputId' inputId: '@inputId'
}, },
controller: function($rootScope, controller: ['$rootScope', '$scope', '$log', 'connection', 'models',
function($rootScope,
$scope, $scope,
$element, $element,
$log, $log,
@ -1666,6 +1667,6 @@ weechat.directive('inputBar', function() {
return true; return true;
} }
}; };
} }]
}; };
}); }]);

View file

@ -3,7 +3,7 @@
var ls = angular.module('localStorage',[]); var ls = angular.module('localStorage',[]);
ls.factory("$store",function($parse){ ls.factory("$store", ["$parse", function($parse){
/** /**
* Global Vars * Global Vars
*/ */
@ -113,5 +113,5 @@ ls.factory("$store",function($parse){
} }
}; };
return publicMethods; return publicMethods;
}); }]);
})(); })();