Eventbug实际上如何工作 [英] How Eventbug actually works

查看:117
本文介绍了Eventbug实际上如何工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eventbug 是firebug的附件(是的,附加组件用于附加),其目的是跟踪分配给DOM元素的所有事件。

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

问题是 - 它实际上如何工作?由于一般来说,至少在我知道的情况下,没有办法在W3C事件模型中获取附加事件的列表。

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.

已经探索过的人这个问题告诉我一些关于下面的基本想法。是否在全局范围内重新定义addEventListener或某些东西?

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

推荐答案

正在使用 nsIEventListenerService ,这是Firefox附加组件可用的内部API。事实上,它是专门为Firebug引入的,请参见错误448602

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.

这篇关于Eventbug实际上如何工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆