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

Function determineUseCapture

dom/src/MainDOMSource.ts:48–57  ·  view source on GitHub ↗
(eventType: string, options: EventsFnOptions)

Source from the content-addressed store, hash-verified

46];
47
48function determineUseCapture(eventType: string, options: EventsFnOptions): boolean {
49 let result = false;
50 if (typeof options.useCapture === 'boolean') {
51 result = options.useCapture;
52 }
53 if (eventTypesThatDontBubble.indexOf(eventType) !== -1) {
54 result = true;
55 }
56 return result;
57}
58
59function filterBasedOnIsolation(domSource: MainDOMSource, fullScope: string) {
60 return function filterBasedOnIsolationOperator(rootElement$: Stream<Element>): Stream<Element> {

Callers 1

eventsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected