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?
1 Answer
Reset to default 9It 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
版权声明:本文标题:javascript - How Eventbug actually works - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745472695a2659822.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论