From c4440eab4c52b035060c4ec870c53bb694f7b8b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 28 Apr 2016 19:15:54 +0200 Subject: [PATCH] fix(dashboard): fixed issue with render event after resize --- public/app/features/panel/panel_ctrl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts index 76d348d9b1f..82e19f8681b 100644 --- a/public/app/features/panel/panel_ctrl.ts +++ b/public/app/features/panel/panel_ctrl.ts @@ -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')); }