File tree 2 files changed +12
-9
lines changed 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
- v14.16 .0
1
+ v20.10 .0
Original file line number Diff line number Diff line change @@ -15,14 +15,17 @@ class Engine {
15
15
16
16
this . initMenuLink ( ) ;
17
17
18
- this . cancelAnimationFrame =
19
- (
20
- window . cancelAnimationFrame ||
21
- window . webkitCancelRequestAnimationFrame ||
22
- window . mozCancelRequestAnimationFrame ||
23
- window . oCancelRequestAnimationFrame ||
24
- window . msCancelRequestAnimationFrame
25
- ) ?. bind ( window ) || clearTimeout ;
18
+ const cancelAnimationFrameObj = (
19
+ window . cancelAnimationFrame ||
20
+ window . webkitCancelRequestAnimationFrame ||
21
+ window . mozCancelRequestAnimationFrame ||
22
+ window . oCancelRequestAnimationFrame ||
23
+ window . msCancelRequestAnimationFrame
24
+ ) ;
25
+
26
+ this . cancelAnimationFrame = cancelAnimationFrameObj
27
+ ? cancelAnimationFrameObj . bind ( window ) || clearTimeout
28
+ : clearTimeout ;
26
29
}
27
30
28
31
initFpsmeter ( ) {
You can’t perform that action at this time.
0 commit comments