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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.