Просмотр исходного кода

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 лет назад
Родитель
Сommit
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, _, $) {
   'use strict';
 
+  // This function needs $inject annotations, update below
+  // when changing arguments to this function
   function PanelBaseCtrl($scope, $rootScope, $timeout) {
 
     var menu = [
@@ -125,6 +127,8 @@ function (angular, _, $) {
 
   }
 
+  PanelBaseCtrl['$inject'] = ['$scope', '$rootScope', '$timeout'];
+
   return PanelBaseCtrl;
 
 });