MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / events

Method events

dom/src/DocumentDOMSource.ts:23–33  ·  view source on GitHub ↗
(eventType: string, options: EventsFnOptions = {})

Source from the content-addressed store, hash-verified

21 }
22
23 public events(eventType: string, options: EventsFnOptions = {}): Stream<Event> {
24 let stream: Stream<Event>;
25 if (options && typeof options.useCapture === 'boolean') {
26 stream = fromEvent(document, eventType, options.useCapture);
27 } else {
28 stream = fromEvent(document, eventType);
29 }
30 const out: DevToolEnabledSource & Stream<Event> = adapt(stream);
31 out._isCycleSource = this._name;
32 return out;
33 }
34}

Callers

nothing calls this directly

Calls 2

fromEventFunction · 0.90
adaptFunction · 0.90

Tested by

no test coverage detected