Skip to content

Commit

Permalink
Implement .unsubscribeAll() method on Live Objects
Browse files Browse the repository at this point in the history
Resolves DTP-959
  • Loading branch information
VeskeR committed Nov 5, 2024
1 parent 0b8cf08 commit 8e7ac2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/liveobjects/liveobject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export abstract class LiveObject<
this._eventEmitter.off(LiveObjectEvents.Updated, listener);
}

unsubscribeAll(): void {
this._eventEmitter.off(LiveObjectEvents.Updated);
}

/**
* @internal
*/
Expand Down

0 comments on commit 8e7ac2d

Please sign in to comment.