MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / tick

Function tick

public/localscripts/calculationQuestion/jquery.js:7948–7972  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 ),

Callers

nothing calls this directly

Calls 2

createFxNowFunction · 0.85
runMethod · 0.80

Tested by

no test coverage detected