(h: FrameRequestCallback)
| 216 | * Use only when you know ngzone should not run |
| 217 | */ |
| 218 | export const raf = (h: FrameRequestCallback) => { |
| 219 | if (typeof __zone_symbol__requestAnimationFrame === 'function') { |
| 220 | return __zone_symbol__requestAnimationFrame(h); |
| 221 | } |
| 222 | if (typeof requestAnimationFrame === 'function') { |
| 223 | return requestAnimationFrame(h); |
| 224 | } |
| 225 | return setTimeout(h); |
| 226 | }; |
| 227 | |
| 228 | export const hasShadowDom = (el: HTMLElement) => { |
| 229 | return !!el.shadowRoot && !!(el as any).attachShadow; |
no outgoing calls
no test coverage detected