Commit c4440eab by Torkel Ödegaard

fix(dashboard): fixed issue with render event after resize

parent 89ea25ca
......@@ -44,8 +44,8 @@ export class PanelCtrl {
this.pluginName = plugin.name;
}
$scope.$on("refresh", this.refresh.bind(this));
$scope.$on("render", this.render.bind(this));
$scope.$on("refresh", () => this.refresh());
$scope.$on("render", () => this.render());
$scope.$on("$destroy", () => this.events.emit('panel-teardown'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment