[whatwg] Detecting eventListeners

Xavier Ho contact at xavierho.com
Thu May 24 20:00:54 PDT 2012


Hello Rick,

Apologies, Jason.

On 25 May 2012 12:54, Rick Waldron <waldron.rick at gmail.com> wrote:
>
> But once the door is open, there is no way to close it.
>

 The door's already open.  You simply have to iterate through all the
nodes, and call removeEventListener with all possible events.


> Please save the dramatics, it would hardly take 1000 lines of code to
> accomplish this.
>
> I suspect there is likely a simpler alternative solution to your problem -
> that doesn't involve new spec features.
>
> I hope so too.  I will add however that override an injection on the top
of the page isn't a robust solution, because we want to run our scripts on
any arbitrary internal sites.

Cheers,
Xav



More information about the whatwg mailing list