javascript - How Eventbug actually works - Stack Overflow

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

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745472696a4629206.html

相关推荐

  • javascript - How Eventbug actually works - Stack Overflow

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

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信