MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / tick

Function tick

camera/jquery.js:6515–6539  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

createFxNowFunction · 0.70

Tested by

no test coverage detected