Created
July 7, 2011 09:48
-
-
Save kopiro/1069205 to your computer and use it in GitHub Desktop.
Async FOR in Javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afor = function(a, b, c, t, f) { | |
eval(a); | |
if (eval(b)) { | |
f.apply(); | |
eval(c); | |
setTimeout(function(){ afor(null,b,c,t,f) }, t); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment