Re: [PageVisibility] location of the interface

On 5/2/11 7:08 PM, Cameron McCormack wrote:
> Jonas Sicking:
>> I partially agree with you. However it's always iffy to place things
>> on the window object as that is the global namespace for scripts, and
>> so you have to worry about colliding with global variables.
> It’s fine in Firefox, where declaring and assigning to variables doesn’t
> interfere with properties from the Window object

Only if the variables are declared with |var|.  Plenty of scripts use 
undeclared variables, though.


Received on Monday, 2 May 2011 23:24:18 UTC