mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
da13de6af5
commit
f36d91336a
@ -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;
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user