()
| 7946 | delete tick.elem; |
| 7947 | }), |
| 7948 | tick = function() { |
| 7949 | if ( stopped ) { |
| 7950 | return false; |
| 7951 | } |
| 7952 | var currentTime = fxNow || createFxNow(), |
| 7953 | remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), |
| 7954 | // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) |
| 7955 | temp = remaining / animation.duration || 0, |
| 7956 | percent = 1 - temp, |
| 7957 | index = 0, |
| 7958 | length = animation.tweens.length; |
| 7959 | |
| 7960 | for ( ; index < length ; index++ ) { |
| 7961 | animation.tweens[ index ].run( percent ); |
| 7962 | } |
| 7963 | |
| 7964 | deferred.notifyWith( elem, [ animation, percent, remaining ]); |
| 7965 | |
| 7966 | if ( percent < 1 && length ) { |
| 7967 | return remaining; |
| 7968 | } else { |
| 7969 | deferred.resolveWith( elem, [ animation ] ); |
| 7970 | return false; |
| 7971 | } |
| 7972 | }, |
| 7973 | animation = deferred.promise({ |
| 7974 | elem: elem, |
| 7975 | props: jQuery.extend( {}, properties ), |
nothing calls this directly
no test coverage detected