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 8c6d3b0 commit b56efa1
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 b56efa1

Please sign in to comment.