mirror of
https://github.com/nasa/openmct.git
synced 2025-03-10 22:43:55 +00:00
Fixes failing test.
This commit is contained in:
parent
5d8252bb07
commit
a6825f530c
@ -73,7 +73,9 @@ export default class TelemetryCriterion extends EventEmitter {
|
|||||||
*/
|
*/
|
||||||
unsubscribe() {
|
unsubscribe() {
|
||||||
//unsubscribe from telemetry source
|
//unsubscribe from telemetry source
|
||||||
this.subscription();
|
if (typeof this.subscription === 'function') {
|
||||||
|
this.subscription();
|
||||||
|
}
|
||||||
delete this.subscription;
|
delete this.subscription;
|
||||||
this.emit('criterion::Remove', this.telemetryObjectIdAsString);
|
this.emit('criterion::Remove', this.telemetryObjectIdAsString);
|
||||||
delete this.telemetryObjectIdAsString;
|
delete this.telemetryObjectIdAsString;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user