()
| 92 | delete tick.elem; |
| 93 | }), |
| 94 | tick = function() { |
| 95 | if (stopped) { |
| 96 | return false; |
| 97 | } |
| 98 | var currentTime = fxNow || createFxNow(), |
| 99 | remaining = Math.max(0, animation.startTime + animation.duration - currentTime), |
| 100 | // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) |
| 101 | temp = remaining / animation.duration || 0, |
| 102 | percent = 1 - temp, |
| 103 | index = 0, |
| 104 | length = animation.tweens.length; |
| 105 | |
| 106 | for (; index < length; index++) { |
| 107 | animation.tweens[index].run(percent); |
| 108 | } |
| 109 | |
| 110 | deferred.notifyWith(elem, [animation, percent, remaining]); |
| 111 | |
| 112 | if (percent < 1 && length) { |
| 113 | return remaining; |
| 114 | } else { |
| 115 | deferred.resolveWith(elem, [animation]); |
| 116 | return false; |
| 117 | } |
| 118 | }, |
| 119 | animation = deferred.promise({ |
| 120 | elem : elem, |
| 121 | props : jQuery.extend({}, properties), |
nothing calls this directly
no test coverage detected