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

This commit is contained in:
Torkel Ödegaard
2016-04-28 19:15:54 +02:00
parent 89ea25ca08
commit c4440eab4c
+2 -2
View File
@@ -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'));
}