()
| 7730 | delete tick.elem; |
| 7731 | } ), |
| 7732 | tick = function() { |
| 7733 | if ( stopped ) { |
| 7734 | return false; |
| 7735 | } |
| 7736 | var currentTime = fxNow || createFxNow(), |
| 7737 | remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), |
| 7738 | |
| 7739 | // Support: Android 2.3 |
| 7740 | // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) |
| 7741 | temp = remaining / animation.duration || 0, |
| 7742 | percent = 1 - temp, |
| 7743 | index = 0, |
| 7744 | length = animation.tweens.length; |
| 7745 | |
| 7746 | for ( ; index < length ; index++ ) { |
| 7747 | animation.tweens[ index ].run( percent ); |
| 7748 | } |
| 7749 | |
| 7750 | deferred.notifyWith( elem, [ animation, percent, remaining ] ); |
| 7751 | |
| 7752 | if ( percent < 1 && length ) { |
| 7753 | return remaining; |
| 7754 | } else { |
| 7755 | deferred.resolveWith( elem, [ animation ] ); |
| 7756 | return false; |
| 7757 | } |
| 7758 | }, |
| 7759 | animation = deferred.promise( { |
| 7760 | elem: elem, |
| 7761 | props: jQuery.extend( {}, properties ), |
nothing calls this directly
no test coverage detected