W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] Detecting eventListeners

From: Xavier Ho <contact@xavierho.com>
Date: Fri, 25 May 2012 13:00:54 +1000
Message-ID: <CALWePYw-4LpUsXUQ1p+ydf8bnHHbJ_L=NzBUv6-KV+FYPhnXug@mail.gmail.com>
To: Rick Waldron <waldron.rick@gmail.com>
Cc: whatwg@whatwg.org, Jason Edward 今井 Parrott <parrott.jason@gmail.com>
Hello Rick,

Apologies, Jason.

On 25 May 2012 12:54, Rick Waldron <waldron.rick@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
Received on Friday, 25 May 2012 03:03:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT