MCPcopy
hub / github.com/QwikDev/qwik / broadcast

Function broadcast

packages/qwik/src/qwikloader.ts:50–54  ·  view source on GitHub ↗
(infix: string, ev: Event, type = ev.type)

Source from the content-addressed store, hash-verified

48const isPromise = (promise: Promise<any>) => promise && typeof promise.then === 'function';
49
50const broadcast = (infix: string, ev: Event, type = ev.type) => {
51 querySelectorAll('[on' + infix + '\\:' + type + ']').forEach((el) => {
52 dispatch(el, infix, ev, type);
53 });
54};
55
56const resolveContainer = (containerEl: QContainerElement) => {
57 if (containerEl._qwikjson_ === undefined) {

Callers 2

processDocumentEventFunction · 0.85
processWindowEventFunction · 0.85

Calls 2

querySelectorAllFunction · 0.85
dispatchFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…