Had a debate with my colleague on this, as we had to deal with some async/sync issues. However, it raised another question, which I couldn't figure out a definite answer for.Assume a simple for-each loop ($.each), where for-each iteration I call a function set in the global scope. Does the function run synchronously or asynchronously? Assume no Ajax, so what the function does is completely synchronous, albeit merely executed. In other words, I wonder whether the function call itself is blocking within the iteration or not.Thanks!
so which side of this bet...[cough ..cough] .. debate were you on...payee..or payer?
Payee of course. ;)
So you guys are saying the iteration will not continue until the function called is done running, correct?
asde that's right