Hi,

> but new function() { ... }; is much cleaner, IMO. As far as I know,
> that is the "best" way to have a local scope, [...]

We had that before. Deans way to create a local scope ((function() {...})()) 
is better, because it doesn't create a new Object that you never use. Of 
course that difference is not too big, but it is there.

Also I don't think that new function() {...} is cleaner or better to read. 
Usually when I read 'new' I expect that a new object is created and I wonder 
what will be done with it.

Christof

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to