From 09a59f743c15bdc1717ea5bada2b19eedea7545a Mon Sep 17 00:00:00 2001 From: Andrew Bulat Date: Tue, 5 Nov 2024 04:28:41 +0000 Subject: [PATCH] Implement .unsubscribeAll() method on Live Objects Resolves DTP-959 --- src/plugins/liveobjects/liveobject.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/liveobjects/liveobject.ts b/src/plugins/liveobjects/liveobject.ts index 6682332b9..8e3fa8a08 100644 --- a/src/plugins/liveobjects/liveobject.ts +++ b/src/plugins/liveobjects/liveobject.ts @@ -71,6 +71,10 @@ export abstract class LiveObject< this._eventEmitter.off(LiveObjectEvents.Updated, listener); } + unsubscribeAll(): void { + this._eventEmitter.off(LiveObjectEvents.Updated); + } + /** * @internal */