(el: HTMLElement, fallback: HTMLElement = el)
| 208 | * do "myElement.shadowRoot!.querySelector(...)". |
| 209 | */ |
| 210 | export const getElementRoot = (el: HTMLElement, fallback: HTMLElement = el) => { |
| 211 | return el.shadowRoot || fallback; |
| 212 | }; |
| 213 | |
| 214 | /** |
| 215 | * Patched version of requestAnimationFrame that avoids ngzone |
no outgoing calls
no test coverage detected