Why does jQuery have undefined in its argument signature, and why does it pass window in again? -


i see jquery wrapped with...

(function( window, undefined ) {    ... })(window); 

source.

i see passes in window again (my guess make accessing faster), why undefined there, , not passed in self invoking function?

my guess protect jquery bozo doing...

var undefined = 'defined'; 

in instance, undefined string 'defined', , bad.

if i'm right (always first :p), clever way of ensuring undefined always undefined.

am right? can elaborate? passing window again indeed make things faster?

thanks.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -