MCPcopy Create free account
hub / github.com/frank-lam/fullstack-tutorial / tick

Function tick

notes/docsify/unpkg/gotop/jquery-2.1.0.js:6458–6482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6456 delete tick.elem;
6457 }),
6458 tick = function() {
6459 if ( stopped ) {
6460 return false;
6461 }
6462 var currentTime = fxNow || createFxNow(),
6463 remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
6464 // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
6465 temp = remaining / animation.duration || 0,
6466 percent = 1 - temp,
6467 index = 0,
6468 length = animation.tweens.length;
6469
6470 for ( ; index < length ; index++ ) {
6471 animation.tweens[ index ].run( percent );
6472 }
6473
6474 deferred.notifyWith( elem, [ animation, percent, remaining ]);
6475
6476 if ( percent < 1 && length ) {
6477 return remaining;
6478 } else {
6479 deferred.resolveWith( elem, [ animation ] );
6480 return false;
6481 }
6482 },
6483 animation = deferred.promise({
6484 elem: elem,
6485 props: jQuery.extend( {}, properties ),

Callers

nothing calls this directly

Calls 1

createFxNowFunction · 0.85

Tested by

no test coverage detected