mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 13:43:09 +00:00
remove listener on destroy
This commit is contained in:
parent
3b82fd5d8b
commit
ecf3e19f16
@ -277,6 +277,7 @@ export default class ConditionClass extends EventEmitter {
|
||||
}
|
||||
|
||||
destroy() {
|
||||
this.conditionManager.off('broadcastTelemetry', this.handleBroadcastTelemetry, this);
|
||||
if (typeof this.stopObservingForChanges === 'function') {
|
||||
this.stopObservingForChanges();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user