List of utility methods to do Function Repeat
repeat(interval)Function.prototype.repeat = function(interval){ return setInterval(this, interval); }; | |
sleep(delay)function sleep(delay){ var start = new Date().getTime(); while (new Date().getTime() < start + delay); |