MCPcopy Create free account
hub / github.com/microsoft/SandDance / requestAnimationFrame

Function requestAnimationFrame

docs/tests/v2/es6/js/sanddance.js:3081–3083  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

3079
3080/* global window, setTimeout, clearTimeout */
3081function requestAnimationFrame(callback) {
3082 return typeof window !== 'undefined' && window.requestAnimationFrame ? window.requestAnimationFrame(callback) : setTimeout(callback, 1000 / 60);
3083}
3084
3085function cancelAnimationFrame(timerId) {
3086 return typeof window !== 'undefined' && window.cancelAnimationFrame ? window.cancelAnimationFrame(timerId) : clearTimeout(timerId);

Callers 1

sanddance.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected