PanelEvents: Isolate more for old angular query editors (#30379)

This commit is contained in:
Torkel Ödegaard
2021-01-19 12:36:50 +01:00
committed by GitHub
parent 086c77f5e3
commit 77ef9abeed
2 changed files with 7 additions and 9 deletions

View File

@@ -14,12 +14,10 @@ import {
fieldColorModeRegistry,
FieldConfigProperty,
FieldConfigSource,
PanelEvents,
PanelPlugin,
ScopedVars,
ThresholdsConfig,
ThresholdsMode,
EventBusExtended,
EventBusSrv,
DataFrameDTO,
urlUtil,
@@ -154,7 +152,7 @@ export class PanelModel implements DataConfigSource {
isInView: boolean;
hasRefreshed: boolean;
events: EventBusExtended;
events: EventBusSrv;
cacheTimeout?: any;
cachedPluginOptions?: any;
legend?: { show: boolean; sort?: string; sortDesc?: boolean };
@@ -479,7 +477,6 @@ export class PanelModel implements DataConfigSource {
}
destroy() {
this.events.emit(PanelEvents.panelTeardown);
this.events.removeAllListeners();
if (this.queryRunner) {