From c28454172b620529863a5ad795be76ce82c25424 Mon Sep 17 00:00:00 2001 From: Jason Barry Date: Sat, 21 Sep 2024 18:26:39 -0700 Subject: [PATCH] fix: remove timeout from global scope (#84) --- src/requestAnimationFramePolyfill.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/requestAnimationFramePolyfill.ts b/src/requestAnimationFramePolyfill.ts index c20c5d5..4550dfd 100644 --- a/src/requestAnimationFramePolyfill.ts +++ b/src/requestAnimationFramePolyfill.ts @@ -1,4 +1,3 @@ -import emptyFunction from './utils/emptyFunction'; import getGlobal from './utils/getGlobal'; const g = getGlobal(); @@ -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;