3 ms·
The 2 * 60 * 1000 idiom for two minutes doesn't bother me. underscore.js has a nice alternative for setTimeout() and several functions that probably should be
by benatkin 16y ago
The 2 * 60 * 1000 idiom for two minutes doesn't bother me.
underscore.js has a nice alternative for setTimeout() and several functions that probably should be used instead of setInterval() in most cases where setInterval() is used:
http://documentcloud.github.com/underscore/#delay http://documentcloud.github.com/underscore/#delay
- avk 16y agoThanks for sharing. I haven't worked with underscore yet. What about delay do you find superior to setTimeout() ?