MCPcopy
hub / github.com/thomaspark/flexboxfroggy / later

Function later

js/game.js:492–495  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

490 return function() {
491 var context = this, args = arguments;
492 var later = function() {
493 timeout = null;
494 if (!immediate) func.apply(context, args);
495 };
496 var callNow = immediate && !timeout;
497 clearTimeout(timeout);
498 timeout = setTimeout(later, wait);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected