Memory leak fixes (#2387)
* Clean up listeners * Fix uses of 'destroy' instead of 'destroyed'
This commit is contained in:
committed by
Deep Tailor
parent
d2e2d55caf
commit
844280eaa5
@@ -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)))
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user