File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -300,20 +300,9 @@ LibraryJSEventLoop = {
300
300
requestAnimationFrame ( func ) {
301
301
if ( typeof requestAnimationFrame == 'function' ) {
302
302
requestAnimationFrame ( func ) ;
303
- return ;
304
- }
305
- var RAF = MainLoop . fakeRequestAnimationFrame ;
306
- #if LEGACY_VM_SUPPORT
307
- if ( typeof window != 'undefined' ) {
308
- RAF = window [ 'requestAnimationFrame' ] ||
309
- window [ 'mozRequestAnimationFrame' ] ||
310
- window [ 'webkitRequestAnimationFrame' ] ||
311
- window [ 'msRequestAnimationFrame' ] ||
312
- window [ 'oRequestAnimationFrame' ] ||
313
- RAF ;
303
+ } else {
304
+ MainLoop . fakeRequestAnimationFrame ( func ) ;
314
305
}
315
- #endif
316
- RAF ( func ) ;
317
306
} ,
318
307
} ,
319
308
Original file line number Diff line number Diff line change @@ -107,12 +107,6 @@ function renderFrame() {
107
107
renderFrameData = null ;
108
108
}
109
109
110
- if ( typeof window != 'undefined' ) {
111
- window . requestAnimationFrame = window . requestAnimationFrame || window . mozRequestAnimationFrame ||
112
- window . webkitRequestAnimationFrame || window . msRequestAnimationFrame ||
113
- renderFrame ;
114
- }
115
-
116
110
/*
117
111
(() => {
118
112
var trueRAF = window.requestAnimationFrame;
You can’t perform that action at this time.
0 commit comments