Memory leak fixes (#2387)

* Clean up listeners

* Fix uses of 'destroy' instead of 'destroyed'
This commit is contained in:
Andrew Henry
2019-04-26 10:34:24 -07:00
committed by Deep Tailor
parent d2e2d55caf
commit 844280eaa5
6 changed files with 32 additions and 13 deletions

View File

@ -239,7 +239,7 @@ define([
this.filteredRows.destroy();
Object.keys(this.subscriptions).forEach(this.unsubscribe, this);
this.openmct.time.off('bounds', this.refreshData);
this.openmct.time.on('timeSystem', this.refreshData);
this.openmct.time.off('timeSystem', this.refreshData);
if (this.filterObserver) {
this.filterObserver();
}