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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Sun, 12 Aug 2012 13:01:31 +1000
Message-ID: <50271C8B.8050208@mcc.id.au>
To: Brendan Eich <brendan@mozilla.com>
CC: Allen Wirfs-Brock <allen@wirfs-brock.com>, Boris Zbarsky <bzbarsky@mit.edu>, public-script-coord@w3.org, es-discuss@mozilla.org
Brendan Eich:
> As noted, they started out that way 17 years ago. I think WebIDL and
> interface-based method definition made onload, e.g., predefined on
> window objects, or more recently on Window.prototype. Was this useful?
> Was it intended specifically (for window, not just intended generally
> due to WebIDL's uniform rules for binding its definitions in JS)?

I don't think it provides any benefit.  Uniformity is the only reason 
the spec says they should be there, currently.
Received on Sunday, 12 August 2012 03:02:25 UTC

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