Can any body throw me some arguments for using inline functions against passing predefined function name to some handler.
I.e. which is better:
There are no technical reasons to prefer one version over the other. For me is usually depends on two things:
Example:
setTimeout(function() { // I need to scroll to see the other arguments
// many lines of code
}, 0); // <- where does this '0' belong to?