admin管理员组

文章数量:1426403

Eventbug is a add-on for Firebug (yes, add-on for add-on), which is aimed to track all events assigned to DOM elements.

The question is - how it actually works? Since, generally speaking, there is no way, at least as far as I know, to get the list of attached events in W3C event model.

Can somebody who already explored this issue tell me something about the basic idea underneath. Is it redefining addEventListener in global scope or something?

Eventbug is a add-on for Firebug (yes, add-on for add-on), which is aimed to track all events assigned to DOM elements.

The question is - how it actually works? Since, generally speaking, there is no way, at least as far as I know, to get the list of attached events in W3C event model.

Can somebody who already explored this issue tell me something about the basic idea underneath. Is it redefining addEventListener in global scope or something?

Share Improve this question edited Mar 2, 2021 at 9:49 Brian Tompsett - 汤莱恩 5,89372 gold badges61 silver badges133 bronze badges asked Aug 31, 2011 at 9:08 shabuncshabunc 24.9k22 gold badges81 silver badges112 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 9

It is using nsIEventListenerService which is an internal API available to Firefox add-ons. In fact, it has been introduced specifically for Firebug, see bug 448602.

本文标签: javascriptHow Eventbug actually worksStack Overflow