فهرست منبع

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, _, $) {
   '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;
 
 });