pombreda / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

window object is not fixed #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not sure is it a bug or a feature ;-) ..following:

base2.DOM.bind(document)
window.addEventListener("unload", function () {}, false)

will return "undefined" error in IE (window has not implemented
addEventListener).
I assume that window object is not fixed at all.

I'm using latest base2: Fri, 13 Jul 2007 17:39:33

Original issue reported on code.google.com by marius...@gmail.com on 19 Jul 2007 at 10:23

GoogleCodeExporter commented 9 years ago
The window object is not really standardised (although the WHATWG are 
specifying it).
I'm changing this to "enhancement".

Original comment by dean.edw...@gmail.com on 21 Jul 2007 at 7:24

GoogleCodeExporter commented 9 years ago
At the moment one can use something like this:
base2.DOM.Element.addEventListener(window, "unload", function () {}, false);

Original comment by ffreak@gmail.com on 1 Aug 2007 at 9:18

GoogleCodeExporter commented 9 years ago
I'm changing this "WontFix". The window object is not part of the DOM and it is 
not a
standard object.

Original comment by dean.edw...@gmail.com on 10 Aug 2007 at 4:57