nitweb: remove useless module injection from module index
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 9 Jun 2017 18:05:17 +0000 (14:05 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 9 Jun 2017 18:05:17 +0000 (14:05 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

share/nitweb/javascripts/index.js

index 3cee67a..c45ccbf 100644 (file)
@@ -28,7 +28,7 @@
                                })
                })
 
-               .controller('IndexCtrl', ['Catalog', '$sce', '$scope', '$location', '$anchorScroll', function(Catalog, $sce, $scope, $location, $anchorScroll) {
+               .controller('IndexCtrl', function(Catalog, $sce, $scope, $location, $anchorScroll) {
                        this.loadHighlighted = function() {
                                Catalog.loadHightlighted(
                                        function(data) {
@@ -82,9 +82,9 @@
                        this.loadHighlighted();
                        this.loadStats();
                        this.loadContributors();
-               }])
+               })
 
-               .directive('contributorList', ['Model', function(Model) {
+               .directive('contributorList', function(Model) {
                        return {
                                restrict: 'E',
                                scope: {
@@ -94,5 +94,5 @@
                                },
                                templateUrl: '/directives/contributor-list.html'
                        };
-               }])
+               })
 })();