@@ -57,19 +57,19 @@ export const requestTimeout = function(fn, delay) {
57
57
* @param {int|object } fn The callback function
58
58
*/
59
59
export const clearRequestTimeout = function ( handle ) {
60
- return window . cancelAnimationFrame
61
- ? window . cancelAnimationFrame ( handle . value )
62
- : window . webkitCancelAnimationFrame
63
- ? window . webkitCancelAnimationFrame ( handle . value )
64
- : window . webkitCancelRequestAnimationFrame
65
- ? window . webkitCancelRequestAnimationFrame (
66
- handle . value
67
- ) /* Support for legacy API */
68
- : window . mozCancelRequestAnimationFrame
69
- ? window . mozCancelRequestAnimationFrame ( handle . value )
70
- : window . oCancelRequestAnimationFrame
71
- ? window . oCancelRequestAnimationFrame ( handle . value )
72
- : window . msCancelRequestAnimationFrame
73
- ? window . msCancelRequestAnimationFrame ( handle . value )
74
- : clearTimeout ( handle ) ;
60
+ return window . cancelAnimationFrame ?
61
+ window . cancelAnimationFrame ( handle . value ) :
62
+ window . webkitCancelAnimationFrame ?
63
+ window . webkitCancelAnimationFrame ( handle . value ) :
64
+ window . webkitCancelRequestAnimationFrame ?
65
+ window . webkitCancelRequestAnimationFrame (
66
+ handle . value
67
+ ) : /* Support for legacy API */
68
+ window . mozCancelRequestAnimationFrame ?
69
+ window . mozCancelRequestAnimationFrame ( handle . value ) :
70
+ window . oCancelRequestAnimationFrame ?
71
+ window . oCancelRequestAnimationFrame ( handle . value ) :
72
+ window . msCancelRequestAnimationFrame ?
73
+ window . msCancelRequestAnimationFrame ( handle . value ) :
74
+ clearTimeout ( handle ) ;
75
75
} ;
0 commit comments