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

Function emit

packages/utils/src/functions.ts:189–200  ·  view source on GitHub ↗
(
  target: EventTarget,
  type: string,
  detail?: unknown,
  options?: CustomEventInit,
)

Source from the content-addressed store, hash-verified

187 * @returns {boolean} Returns the result value.
188 */
189export function emit(
190 target: EventTarget,
191 type: string,
192 detail?: unknown,
193 options?: CustomEventInit,
194): boolean {
195 return target.dispatchEvent(new CustomEvent(type, {
196 ...defaultEventOptions,
197 detail,
198 ...options,
199 }));
200}
201
202/**
203 * Get the real event target by checking composed path.

Callers 2

index.spec.tsFile · 0.90
$emitMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…