()
| 6512 | delete tick.elem; |
| 6513 | }), |
| 6514 | tick = function() { |
| 6515 | if ( stopped ) { |
| 6516 | return false; |
| 6517 | } |
| 6518 | var currentTime = fxNow || createFxNow(), |
| 6519 | remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), |
| 6520 | // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) |
| 6521 | temp = remaining / animation.duration || 0, |
| 6522 | percent = 1 - temp, |
| 6523 | index = 0, |
| 6524 | length = animation.tweens.length; |
| 6525 | |
| 6526 | for ( ; index < length ; index++ ) { |
| 6527 | animation.tweens[ index ].run( percent ); |
| 6528 | } |
| 6529 | |
| 6530 | deferred.notifyWith( elem, [ animation, percent, remaining ]); |
| 6531 | |
| 6532 | if ( percent < 1 && length ) { |
| 6533 | return remaining; |
| 6534 | } else { |
| 6535 | deferred.resolveWith( elem, [ animation ] ); |
| 6536 | return false; |
| 6537 | } |
| 6538 | }, |
| 6539 | animation = deferred.promise({ |
| 6540 | elem: elem, |
| 6541 | props: jQuery.extend( {}, properties ), |
nothing calls this directly
no test coverage detected