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

Function later

js/game.js:429–432  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

427 return function() {
428 var context = this, args = arguments;
429 var later = function() {
430 timeout = null;
431 if (!immediate) func.apply(context, args);
432 };
433 var callNow = immediate && !timeout;
434 clearTimeout(timeout);
435 timeout = setTimeout(later, wait);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected