
DOMElement addEventListener is broken
Reported by Aman Gupta | January 10th, 2009 @ 06:46 PM
DOMElement.prototype = new DOMNode;
__extend__(DOMElement.prototype, {
    addEventListener:     window.addEventListener,
    removeEventListener:  window.removeEventListener,
    dispatchEvent:        window.dispatchEvent,
is defined before $w (event.js) is included into ext.js, so these functions do not exist.
could either change the ordering, or make wrapper functions instead:
DOMElement.prototype = new DOMNode;
__extend__(DOMElement.prototype, {
    addEventListener:     function(){ window.addEventListener.apply(window, arguments) },
    removeEventListener:  window.removeEventListener,
    dispatchEvent:        window.dispatchEvent,
DOMDocument also has similar pointers, and also to attachEvent/detachEvent
Comments and changes to this ticket
- 
            
         thatcher.christopher (at gmail) January 15th, 2009 @ 11:53 AM- Tag set to document, element, event, window
- State changed from new to resolved
- Assigned user set to thatcher.christopher (at gmail)
 added suggested patch 
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
 Create new ticket
                    Create new ticket