File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ export const closestEl =
4747// `requestAnimationFrame()` convenience method
4848/* istanbul ignore next: JSDOM always returns the first option */
4949export const requestAF =
50- WINDOW . requestAnimationFrame ||
51- WINDOW . webkitRequestAnimationFrame ||
52- WINDOW . mozRequestAnimationFrame ||
53- WINDOW . msRequestAnimationFrame ||
54- WINDOW . oRequestAnimationFrame ||
50+ ( WINDOW . requestAnimationFrame && WINDOW . requestAnimationFrame . bind ( WINDOW ) ) ||
51+ ( WINDOW . webkitRequestAnimationFrame && WINDOW . webkitRequestAnimationFrame . bind ( WINDOW ) ) ||
52+ ( WINDOW . mozRequestAnimationFrame && WINDOW . mozRequestAnimationFrame . bind ( WINDOW ) ) ||
53+ ( WINDOW . msRequestAnimationFrame && WINDOW . msRequestAnimationFrame . bind ( WINDOW ) ) ||
54+ ( WINDOW . oRequestAnimationFrame && WINDOW . oRequestAnimationFrame . bind ( WINDOW ) ) ||
5555 // Fallback, but not a true polyfill
5656 // Only needed for Opera Mini
5757 /* istanbul ignore next */
You can’t perform that action at this time.
0 commit comments