MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / raf

Function raf

core/src/utils/helpers.ts:218–226  ·  view source on GitHub ↗
(h: FrameRequestCallback)

Source from the content-addressed store, hash-verified

216 * Use only when you know ngzone should not run
217 */
218export 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
228export const hasShadowDom = (el: HTMLElement) => {
229 return !!el.shadowRoot && !!(el as any).attachShadow;

Callers 15

componentDidLoadMethod · 0.90
checkButtonGroupWrapMethod · 0.90
componentDidLoadMethod · 0.90
scrollCallbackMethod · 0.90
PickerColumnClass · 0.90
componentDidLoadMethod · 0.90
componentDidLoadMethod · 0.90
componentDidLoadMethod · 0.90
AccordionClass · 0.90
componentDidLoadMethod · 0.90
componentDidRenderMethod · 0.90
completeReorderMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected