Przeglądaj źródła

plugin_loader: expose app_events to plugins

Daniel Lee 8 lat temu
rodzic
commit
3c1beb1bdd
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      public/app/features/plugins/plugin_loader.ts

+ 2 - 0
public/app/features/plugins/plugin_loader.ts

@@ -8,6 +8,7 @@ import jquery from 'jquery';
 import config from 'app/core/config';
 import config from 'app/core/config';
 import TimeSeries from 'app/core/time_series2';
 import TimeSeries from 'app/core/time_series2';
 import TableModel from 'app/core/table_model';
 import TableModel from 'app/core/table_model';
+import appEvents from 'app/core/app_events';
 import {Observable} from 'rxjs/Observable';
 import {Observable} from 'rxjs/Observable';
 import {Subject} from 'rxjs/Subject';
 import {Subject} from 'rxjs/Subject';
 import * as datemath from 'app/core/utils/datemath';
 import * as datemath from 'app/core/utils/datemath';
@@ -57,6 +58,7 @@ exposeToPlugin('app/core/config', config);
 exposeToPlugin('app/core/time_series', TimeSeries);
 exposeToPlugin('app/core/time_series', TimeSeries);
 exposeToPlugin('app/core/time_series2', TimeSeries);
 exposeToPlugin('app/core/time_series2', TimeSeries);
 exposeToPlugin('app/core/table_model', TableModel);
 exposeToPlugin('app/core/table_model', TableModel);
+exposeToPlugin('app/core/app_events', appEvents);
 
 
 import 'vendor/flot/jquery.flot';
 import 'vendor/flot/jquery.flot';
 import 'vendor/flot/jquery.flot.selection';
 import 'vendor/flot/jquery.flot.selection';