()
| 3919 | delete tick.elem; |
| 3920 | }), |
| 3921 | tick = function() { |
| 3922 | if ( stopped ) { |
| 3923 | return false; |
| 3924 | } |
| 3925 | var currentTime = fxNow || createFxNow(), |
| 3926 | remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), |
| 3927 | // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) |
| 3928 | temp = remaining / animation.duration || 0, |
| 3929 | percent = 1 - temp, |
| 3930 | index = 0, |
| 3931 | length = animation.tweens.length; |
| 3932 | |
| 3933 | for ( ; index < length ; index++ ) { |
| 3934 | animation.tweens[ index ].run( percent ); |
| 3935 | } |
| 3936 | |
| 3937 | deferred.notifyWith( elem, [ animation, percent, remaining ]); |
| 3938 | |
| 3939 | if ( percent < 1 && length ) { |
| 3940 | return remaining; |
| 3941 | } else { |
| 3942 | deferred.resolveWith( elem, [ animation ] ); |
| 3943 | return false; |
| 3944 | } |
| 3945 | }, |
| 3946 | animation = deferred.promise({ |
| 3947 | elem: elem, |
| 3948 | props: jQuery.extend( {}, properties ), |
nothing calls this directly
no test coverage detected