Can any body throw me some arguments for using inline functions against passing predefined function name to some handler.
I.e. which is better:
I think that the only difference in a code like that is that with the second piece of code you can re-call the same function (sometimes with "timer functions" it's useful):
(function(){ function invokeMe() { if(..) setTimeout(invokeMe, 5); } setTimeout(invokeMe, 5); })();