()
| 8899 | delete tick.elem; |
| 8900 | }), |
| 8901 | tick = function() { |
| 8902 | if ( stopped ) { |
| 8903 | return false; |
| 8904 | } |
| 8905 | var currentTime = fxNow || createFxNow(), |
| 8906 | remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), |
| 8907 | // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) |
| 8908 | temp = remaining / animation.duration || 0, |
| 8909 | percent = 1 - temp, |
| 8910 | index = 0, |
| 8911 | length = animation.tweens.length; |
| 8912 | |
| 8913 | for ( ; index < length ; index++ ) { |
| 8914 | animation.tweens[ index ].run( percent ); |
| 8915 | } |
| 8916 | |
| 8917 | deferred.notifyWith( elem, [ animation, percent, remaining ]); |
| 8918 | |
| 8919 | if ( percent < 1 && length ) { |
| 8920 | return remaining; |
| 8921 | } else { |
| 8922 | deferred.resolveWith( elem, [ animation ] ); |
| 8923 | return false; |
| 8924 | } |
| 8925 | }, |
| 8926 | animation = deferred.promise({ |
| 8927 | elem: elem, |
| 8928 | props: jQuery.extend( {}, properties ), |
nothing calls this directly
no test coverage detected