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

@@ -18,7 +18,7 @@ export default {
this.objectPath.forEach(object => {
if (object) {
this.$once('hook:destroy',
this.$once('hook:destroyed',
this.openmct.objects.observe(object, '*', updateObject.bind(this, object)))
}
});