Skip to content

Commit 2c6f9a5

Browse files
committed
Implement .unsubscribeAll() method on Live Objects
Resolves DTP-959
1 parent 0509793 commit 2c6f9a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plugins/liveobjects/liveobject.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ export abstract class LiveObject<
7171
this._eventEmitter.off(LiveObjectEvents.Updated, listener);
7272
}
7373

74+
unsubscribeAll(): void {
75+
this._eventEmitter.off(LiveObjectEvents.Updated);
76+
}
77+
7478
/**
7579
* @internal
7680
*/

0 commit comments

Comments
 (0)