Francisco Brito wrote:
>  the "new function(){}()" syntax is not a closure, it's just that 
> scopes are only provided by functions. The function is only 
> encapsulating vars declared within so they don't end up polluting the 
> global namespace.
Ok, thanks for the correction.
> I hope I didn't say something completely stupid while trying to 
> clarify scopes and closures.
Doesn't look like :-)

-- Jörn

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to