(el: HTMLElement | undefined, eventName: string)
| 218 | }; |
| 219 | |
| 220 | export const lifecycle = (el: HTMLElement | undefined, eventName: string) => { |
| 221 | if (el) { |
| 222 | const ev = new CustomEvent(eventName, { |
| 223 | bubbles: false, |
| 224 | cancelable: false, |
| 225 | }); |
| 226 | el.dispatchEvent(ev); |
| 227 | } |
| 228 | }; |
| 229 | |
| 230 | /** |
| 231 | * Wait two request animation frame loops. |
no outgoing calls
no test coverage detected