fixed memory leaks and minor refactoring

This commit is contained in:
Torkel Ödegaard
2018-10-31 03:25:00 -07:00
parent 1dad52eaad
commit 36cd73819a
5 changed files with 31 additions and 37 deletions

View File

@@ -48,11 +48,6 @@ export class PanelCtrl {
}
$scope.$on('component-did-mount', () => this.panelDidMount());
$scope.$on('$destroy', () => {
this.events.emit('panel-teardown');
this.events.removeAllListeners();
});
}
panelDidMount() {