MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / later

Function later

assets/js/ImageSlide.js:5–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3 return function() {
4 var context = this, args = arguments;
5 var later = function() {
6 timeout = null;
7 if (!immediate) func.apply(context, args);
8 };
9 var callNow = immediate && !timeout;
10 clearTimeout(timeout);
11 timeout = setTimeout(later,wait);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected