MCPcopy
hub / github.com/wandb/openui / off

Method off

frontend/src/lib/events.ts:26–32  ·  view source on GitHub ↗
(event: string, listenerToRemove: Listener)

Source from the content-addressed store, hash-verified

24 }
25
26 public off(event: string, listenerToRemove: Listener): void {
27 if (!this.events[event]) return
28
29 this.events[event] = this.events[event]?.filter(
30 listener => listener !== listenerToRemove
31 )
32 }
33
34 public emit(event: string, data: unknown): void {
35 if (!this.events[event]) {

Callers 2

HTMLAnnotatorFunction · 0.80
CurrentUIProviderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected