MCPcopy Index your code
hub / github.com/editablejs/editable / wrapper

Method wrapper

packages/editor/src/plugin/emitter.ts:127–130  ·  view source on GitHub ↗
(...args: any[])

Source from the content-addressed store, hash-verified

125
126 once(type: string | number, listener: Listener, prepend = false): this {
127 const wrapper = (...args: any[]) => {
128 this.off(type, wrapper)
129 listener(...args)
130 }
131 return this.on(type, wrapper, prepend)
132 }
133}

Callers

nothing calls this directly

Calls 1

offMethod · 0.95

Tested by

no test coverage detected