Преглед изворни кода

Fixes #289, PanelBaseCtrl needs to specify inject dependency annotations as it doesnt follow regular angular controller syntax, ngmin grunt task misses it

Torkel Ödegaard пре 11 година
родитељ
комит
f36d91336a
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      src/app/controllers/panelBaseCtrl.js

+ 4 - 0
src/app/controllers/panelBaseCtrl.js

@@ -6,6 +6,8 @@ define([
 function (angular, _, $) {
 function (angular, _, $) {
   'use strict';
   'use strict';
 
 
+  // This function needs $inject annotations, update below
+  // when changing arguments to this function
   function PanelBaseCtrl($scope, $rootScope, $timeout) {
   function PanelBaseCtrl($scope, $rootScope, $timeout) {
 
 
     var menu = [
     var menu = [
@@ -125,6 +127,8 @@ function (angular, _, $) {
 
 
   }
   }
 
 
+  PanelBaseCtrl['$inject'] = ['$scope', '$rootScope', '$timeout'];
+
   return PanelBaseCtrl;
   return PanelBaseCtrl;
 
 
 });
 });