From: Alexandre Terrasa Date: Fri, 9 Jun 2017 18:05:17 +0000 (-0400) Subject: nitweb: remove useless module injection from module index X-Git-Url: http://nitlanguage.org nitweb: remove useless module injection from module index Signed-off-by: Alexandre Terrasa --- diff --git a/share/nitweb/javascripts/index.js b/share/nitweb/javascripts/index.js index 3cee67a..c45ccbf 100644 --- a/share/nitweb/javascripts/index.js +++ b/share/nitweb/javascripts/index.js @@ -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' }; - }]) + }) })();