Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

DOMElement addEventListener is broken

#12
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

Reported by Aman Gupta · January 10th, 2009 @ 06:46 PM

State: resolved
Milestone: none

Activity

  1. thatcher.christopher (at gmail)
    thatcher.christopher (at gmail)
    • Tag set to document, element, event, window
    • State changed from new to resolved
    • Assigned user set to thatcher.christopher (at gmail)

    January 15th, 2009 @ 11:53 AM

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.