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);
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
Post a Comment