(rEl: RElement, eventType: string, listenerFn: Function)
| 50 | } |
| 51 | |
| 52 | export const sharedStashFunction = (rEl: RElement, eventType: string, listenerFn: Function) => { |
| 53 | const el = rEl as unknown as Element; |
| 54 | const eventListenerMap = el.__jsaction_fns ?? new Map(); |
| 55 | const eventListeners = eventListenerMap.get(eventType) ?? []; |
| 56 | eventListeners.push(listenerFn); |
| 57 | eventListenerMap.set(eventType, eventListeners); |
| 58 | el.__jsaction_fns = eventListenerMap; |
| 59 | }; |
| 60 | |
| 61 | export const sharedMapFunction = (rEl: RElement, jsActionMap: Map<string, Set<Element>>) => { |
| 62 | const el = rEl as unknown as Element; |
no test coverage detected
searching dependent graphs…