Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture all the events (javascript)

Tags:

I want to be able to capture all events that are both created and dispatched and fire some callback when that happens.

Also, I would like to be able to fire a callback anytime an event is paired with an event listener.

Problems include: dynamically added elements, events whose propagation or bubbling is prevented, and custom events that are generated dynamically. I imagine there would need to be a prototyping of dispatchEvent or something, but I am unsure. Is this even possible?