Request a list of event listeners registered for a specific type of event

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

+2
source share
1 answer

Not in general. This can only be done if you yourself are monitoring all event listeners in your code. The easiest way is to use the wrapper function for all event listener assignments. I would not be surprised if one of the large libraries does this for you.

0
source

All Articles