nextplease.init = function() {...}
is a function with no arguments. I'd expect nextplease.init
and
function() {nextplease.init();}
to behave identically. Is there any possible difference between them (obviously, you can assign something to nextplease.init
, but let's exclude that)?
In particular, can there be a difference in behavior between window.addEventListener("load", nextplease.init, false);
and window.addEventListener("load", function() {nextplease.init();}, false);
?
The bug I'm trying to find is described in http://stackoverflow.com/questions/2314961/objects-in-javascript-defined-and-undefined-at-the-same-time-in-a-firefox-extens Someone has suggested that using the first form instead of the second might make a difference.