File tree Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
if ( ! window . requestAnimationFrame ) {
7
-
8
- window . requestAnimationFrame = ( function ( ) {
9
-
10
- return window . webkitRequestAnimationFrame ||
11
- window . mozRequestAnimationFrame || // comment out if FF4 is slow (it caps framerate at ~30fps: https://bugzilla.mozilla.org/show_bug.cgi?id=630127)
12
- window . oRequestAnimationFrame ||
13
- window . msRequestAnimationFrame ||
14
- function ( /* function FrameRequestCallback */ callback , /* DOMElement Element */ element ) {
15
-
16
- window . setTimeout ( callback , 1000 / 60 ) ;
17
-
18
- } ;
19
-
20
- } ) ( ) ;
21
-
22
- }
7
+ window . requestAnimationFrame = ( function ( ) {
8
+ return window . webkitRequestAnimationFrame ||
9
+ window . mozRequestAnimationFrame || // comment out if FF4 is slow (it caps framerate at ~30fps: https://bugzilla.mozilla.org/show_bug.cgi?id=630127)
10
+ window . oRequestAnimationFrame ||
11
+ window . msRequestAnimationFrame ||
12
+ function ( /* function FrameRequestCallback */ callback , /* DOMElement Element */ element ) {
13
+ window . setTimeout ( callback , 1000 / 60 ) ;
14
+ } ;
15
+ } ) ( ) ;
16
+ }
You can’t perform that action at this time.
0 commit comments