W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2012

Re: "var" declarations shadowing properties from Window.prototype

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 12 Aug 2012 13:33:55 -0400
Message-ID: <5027E903.2090702@mit.edu>
To: Brendan Eich <brendan@mozilla.com>
CC: Jonas Sicking <jonas@sicking.cc>, es-discuss@mozilla.org, public-script-coord@w3.org
On 8/12/12 1:27 PM, Brendan Eich wrote:
> IOW, I think your requestAnimationFrame var+object-detection example is
> a good one. No difference in principle from the indexedDB case, and
> possibly only just luck that it has not bitten yet.


> Is there a WebIDL style guide for helping decide when and where to use
> attributes, or avoid them?

Not that I know of (though there are some things that can't be done with 
attributes and some that are frowned on; e.g. having attributes that 
return a new object each time is not so great).

Received on Sunday, 12 August 2012 17:34:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:07 UTC