/ Published in: JavaScript
rInterval(function(){
console.log("waiting for next...")
}, 1000, 3);
Expand |
Embed | Plain Text
function rInterval(a1,a2,a3){ var a1=a1||(new Function()),a2=a2||5000,a3=a3||1,a4=a2; for(var x=0;x<a3;++x){setTimeout(function(){a1.call(this);},a4);a4+=a2;} }
You need to login to post a comment.
