Can any body throw me some arguments for using inline functions against passing predefined function name to some handler.
I.e. which is better:
(function(){
setTimeout(function(){ /*some code here*/ }, 5);
})();
versus
(function(){
function invokeMe() {
/*code*/
}
setTimeout(invokeMe, 5);
})();
Strange question, but we are almost fighting in the team about this