Skip to content Skip to sidebar Skip to footer

Querying The List Of Event Listeners Registered For A Given Event Type

Is there a way to identify the list of registered listeners for a given event in javascript, if so can you please list out the sample?

Solution 1:

Not in general. You can only do this if you keep track of all event listeners yourself in your code. The simplest way would be to use a wrapper function for all your event listener assignment. I wouldn't be surprised if one of the big libraries does this for you.


Post a Comment for "Querying The List Of Event Listeners Registered For A Given Event Type"