MCPcopy Create free account
hub / github.com/atomicojs/atomico / dispatchEvent

Function dispatchEvent

src/element/set-prototype.js:95–98  ·  view source on GitHub ↗
(
    node,
    { type, base = CustomEvent, ...eventInit }
)

Source from the content-addressed store, hash-verified

93 * @param {InternalEvent & InternalEventInit} event - Event to dispatch on node
94 */
95export const dispatchEvent = (
96 node,
97 { type, base = CustomEvent, ...eventInit }
98) => node.dispatchEvent(new base(type, eventInit));
99
100/**
101 * Transform a Camel Case string to a Kebab case

Callers 3

useEventFunction · 0.90
setFunction · 0.85
loadFunction · 0.85

Calls 1

dispatchEventMethod · 0.80

Tested by 1

loadFunction · 0.68