[Bug 25593] New: Access to event listeners in the EventTarget

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25593

            Bug ID: 25593
           Summary: Access to event listeners in the EventTarget
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
          Assignee: annevk@annevk.nl
          Reporter: crimsteam@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

Any plans do this in the future? It would be useful if we have access to all
registered event listeners from context:

el.eventListeners << return some array

And we can loop through this array, get single event listener (read type,
callback, capture with the possibility of changes and one method to remove this
event listener totally).

If it is completely impossible maybe add to the EventTarget some method to
remove all event listeners. Now its not easy... especially when we have a lot
of them and some have anonymous callback. We must clone only context, move
content, and probably reconstruction some listeners (nothing pleasant).

I just wonder if there any chances of a better API for these things or we must
use some additional libraries/tricks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 7 May 2014 22:22:05 UTC