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

On 8/10/12 8:17 PM, Allen Wirfs-Brock wrote:
> The least painful solution to the immediate FF issue may be to make
> indexedDB an own property of the window object rather than an inherited
> property. Perhaps do that for all variable-like  properties (those that
> down need real get/set logic) of the window object.

indexedDB has a real getter, fwiw: the object is created lazily....

> but isn't widespread use of inherited setters to implement DOM
> properties fairly recent?

No.  Gecko has done it all along, and IE and Opera have certainly done 
it for a good long while; I haven't tested going back more than a few years.

-Boris

Received on Sunday, 12 August 2012 16:30:33 UTC