Просмотр исходного кода

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

Torkel Ödegaard 9 лет назад
Родитель
Сommit
c4440eab4c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      public/app/features/panel/panel_ctrl.ts

+ 2 - 2
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'));
   }