MCPcopy Create free account
hub / github.com/JsAaron/jQuery / tick

Function tick

2.0.3/2.0.3.js:8071–8095  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8069 delete tick.elem;
8070 }),
8071 tick = function() {
8072 if ( stopped ) {
8073 return false;
8074 }
8075 var currentTime = fxNow || createFxNow(),
8076 remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
8077 // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
8078 temp = remaining / animation.duration || 0,
8079 percent = 1 - temp,
8080 index = 0,
8081 length = animation.tweens.length;
8082
8083 for ( ; index < length ; index++ ) {
8084 animation.tweens[ index ].run( percent );
8085 }
8086
8087 deferred.notifyWith( elem, [ animation, percent, remaining ]);
8088
8089 if ( percent < 1 && length ) {
8090 return remaining;
8091 } else {
8092 deferred.resolveWith( elem, [ animation ] );
8093 return false;
8094 }
8095 },
8096 animation = deferred.promise({
8097 elem: elem,
8098 props: jQuery.extend( {}, properties ),

Callers

nothing calls this directly

Calls 1

createFxNowFunction · 0.70

Tested by

no test coverage detected