Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #130 from flant/fix_null_object
Browse files Browse the repository at this point in the history
fix: proper fallback to string event for renderComplete
  • Loading branch information
diafour authored Aug 28, 2020
2 parents 9a2e4a3 + f037ad0 commit 012bcac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions dist/module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/module.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ loadPluginCss({
light: 'plugins/flant-statusmap-panel/css/statusmap.light.css'
});

export var renderComplete:any = {name:'statusmap-render-complete'}; // eventFactory('statusmap-render-complete');
export var renderComplete:any = {name:'statusmap-render-complete'};

class StatusHeatmapCtrl extends MetricsPanelCtrl {
static templateUrl = 'module.html';
Expand Down Expand Up @@ -150,7 +150,7 @@ class StatusHeatmapCtrl extends MetricsPanelCtrl {
if(!Polygrafill.hasAppEventCompatibleEmitter(this.events)){
CoreEvents.fallbackToStringEvents();
PanelEvents.fallbackToStringEvents();
renderComplete = renderComplete.name;
renderComplete = 'statusmap-render-complete';
}

migratePanelConfig(this.panel);
Expand Down

0 comments on commit 012bcac

Please sign in to comment.