choirulz / base2

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

event.target is undefined in IE #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
- create html file with single <button> element
- link base2 library
- run following code in IE(6 or 7):
base2.DOM.bind(document);
document.matchSingle("button").addEventListener("click", function (e) {
    alert("event.target: " + e.target);
}, false);

You can see it working at: http://mariuszn3.com/base2/eventTarget.html

IE on clicking the button will show alert ""event.target: undefined"

It is on last base2 version (Tue, 26 Jun 2007 15:37:27) on Windows XP
Professional

Original issue reported on code.google.com by marius...@gmail.com on 3 Jul 2007 at 9:24

GoogleCodeExporter commented 9 years ago
The bind method is not doing what it is supposed to do. Need to change 
Binding.js.

Original comment by dean.edw...@gmail.com on 3 Jul 2007 at 4:20

GoogleCodeExporter commented 9 years ago
This was fixed by fixing issue 5 
(http://code.google.com/p/base2/issues/detail?id=5).

Original comment by dean.edw...@gmail.com on 3 Jul 2007 at 8:43

GoogleCodeExporter commented 9 years ago

Original comment by doek...@gmail.com on 14 Jul 2007 at 7:11