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

This commit is contained in:
Torkel Ödegaard 2014-04-06 12:44:00 +02:00
parent da13de6af5
commit f36d91336a

View File

@ -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;
}); });