[jQuery] Re: about "speed up references to window"

2009-01-07 Thread Jinpu Hu
search window in global scope is slower than search window in local scope On Jan 8, 9:50 am, Jinpu Hu wrote: > oh,thank you > i see > > On Jan 8, 9:25 am, Ricardo Tomasi wrote: > > > It has to be a local var: > > > (function(){ > > var window = this; > &g

[jQuery] Re: about "speed up references to window"

2009-01-07 Thread Jinpu Hu
oh,thank you i see On Jan 8, 9:25 am, Ricardo Tomasi wrote: > It has to be a local var: > > (function(){ > var window = this; > > })(); > > On Jan 7, 11:17 am, Jinpu Hu wrote: > > > I see "var window = this" from latest svn code > > &

[jQuery] about "speed up references to window"

2009-01-07 Thread Jinpu Hu
I see "var window = this" from latest svn code I use firebug debugger it. info:"Exception: redeclaration of const window" but in core.js var // Will speed up references to window, and allows munging its name. window = this, // Will speed up references to undefined, and