MCPcopy
hub / github.com/fengyuanchen/cropperjs / off

Function off

packages/utils/src/functions.ts:125–134  ·  view source on GitHub ↗
(
  target: EventTarget,
  types: string,
  listener: EventListenerOrEventListenerObject,
  options?: EventListenerOptions,
)

Source from the content-addressed store, hash-verified

123 * @param {EventListenerOptions} [options] The options specify characteristics about the event listener.
124 */
125export function off(
126 target: EventTarget,
127 types: string,
128 listener: EventListenerOrEventListenerObject,
129 options?: EventListenerOptions,
130): void {
131 types.trim().split(REGEXP_SPACES).forEach((type) => {
132 target.removeEventListener(type, listener, options);
133 });
134}
135
136/**
137 * Add event listener to the event target.

Callers 9

disconnectedCallbackMethod · 0.90
index.spec.tsFile · 0.90
disconnectedCallbackMethod · 0.90
disconnectedCallbackMethod · 0.90
disconnectedCallbackMethod · 0.90
onLoadMethod · 0.90
onErrorMethod · 0.90
$unbindMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected