W3C home > Mailing lists > Public > public-web-perf@w3.org > May 2011

Re: [PageVisibility] location of the interface

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 02 May 2011 20:58:54 -0400
Message-ID: <4DBF534E.8090808@mit.edu>
To: public-web-perf@w3.org
On 5/2/11 7:31 PM, Cameron McCormack wrote:
>> Only if the variables are declared with |var|.  Plenty of scripts use
>> undeclared variables, though.
> You’re right.  I was thinking that pages shouldn’t break even with
> undeclared assignment over the top of a Window member, but that’s really
> only true for functions, like `open = 123`

And only if they're replaceable.  Otherwise the assignment is a no-op, 
which is likely to break things too.

Received on Tuesday, 3 May 2011 00:59:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 May 2011 00:59:24 GMT