@@ -57,19 +57,19 @@ export const requestTimeout = function(fn, delay) {
5757 * @param {int|object } fn The callback function
5858 */
5959export 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 ) ;
7575} ;
0 commit comments