Skip to content

Commit

Permalink
fix: remove timeout from global scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Barry committed Sep 20, 2024
1 parent b0441f0 commit 0070f82
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/requestAnimationFramePolyfill.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import emptyFunction from './utils/emptyFunction';
import getGlobal from './utils/getGlobal';

const g = getGlobal();
Expand All @@ -18,7 +17,4 @@ function _setTimeout(callback: (t: number) => void) {
*/
const requestAnimationFramePolyfill = g.requestAnimationFrame || _setTimeout;

// Works around a rare bug in Safari 6 where the first request is never invoked.
requestAnimationFramePolyfill(emptyFunction);

export default requestAnimationFramePolyfill;

0 comments on commit 0070f82

Please sign in to comment.