https://github.com/fed135/event-inspector
To list and sort event listeners in a web page
https://github.com/fed135/event-inspector
Last synced: 11 months ago
JSON representation
To list and sort event listeners in a web page
- Host: GitHub
- URL: https://github.com/fed135/event-inspector
- Owner: fed135
- License: gpl-2.0
- Created: 2015-11-05T20:19:50.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-05T20:32:08.000Z (about 10 years ago)
- Last Synced: 2025-01-08T18:52:50.668Z (about 1 year ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Event Inspector
Add this script before all other scripts in your page to get a meaningful
overview of all the event listeners in your page.
Namespace: __events
!! For rough debugging only. Results may vary and are not super accurate. !!
!! Should never be used as part of production code. !!
## Methods
* Count
Returns the total number of active event listeners
* getWithEvt
Returns the list of event listeners with event name $evt
Ex: __events.getWithEvt('mouseenter');
* getWithTag
Returns the list of event listeners for tag name $tag
Ex: __events.getWithTag('a');
* countByTag
Returns the number of event listeners by tag
* countByEvt
Returns the number of event listeners by event