Passing JavaScript Function object to EventTarget.addEventListener()
Sergey Yanovich <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
[1] specifies that the second argument taken by addEventListener to be an EventListener instance. However, Mozilla accepts plain Function objects just fine. Could anyone provide any pointers why this works (is this a DOM feature or an extension), and in which module this is implemented (dom, content, or xpconnect maybe)? 1. http://www.w3.org/TR/DOM-Level-2-Events/events.html -- Thanks in advance, Sergey Yanovich