()
| 8713 | delete tick.elem; |
| 8714 | }), |
| 8715 | tick = function() { |
| 8716 | if ( stopped ) { |
| 8717 | return false; |
| 8718 | } |
| 8719 | var currentTime = fxNow || createFxNow(), |
| 8720 | remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), |
| 8721 | // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) |
| 8722 | temp = remaining / animation.duration || 0, |
| 8723 | percent = 1 - temp, |
| 8724 | index = 0, |
| 8725 | length = animation.tweens.length; |
| 8726 | |
| 8727 | for ( ; index < length ; index++ ) { |
| 8728 | animation.tweens[ index ].run( percent ); |
| 8729 | } |
| 8730 | |
| 8731 | deferred.notifyWith( elem, [ animation, percent, remaining ]); |
| 8732 | |
| 8733 | if ( percent < 1 && length ) { |
| 8734 | return remaining; |
| 8735 | } else { |
| 8736 | deferred.resolveWith( elem, [ animation ] ); |
| 8737 | return false; |
| 8738 | } |
| 8739 | }, |
| 8740 | animation = deferred.promise({ |
| 8741 | elem: elem, |
| 8742 | props: jQuery.extend( {}, properties ), |
nothing calls this directly
no test coverage detected