refactor(): dashboard row model and hunting down memory leak

This commit is contained in:
Torkel Ödegaard
2016-10-30 15:14:18 +01:00
parent 57cbefdf0a
commit 4d420a0c33
20 changed files with 364 additions and 45 deletions

View File

@@ -17,9 +17,10 @@ export class ThresholdFormCtrl {
this.disabled = true;
}
$scope.$on("$destroy", () => {
var unbindDestroy = $scope.$on("$destroy", () => {
this.panelCtrl.editingThresholds = false;
this.panelCtrl.render();
unbindDestroy();
});
this.panelCtrl.editingThresholds = true;