- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I am trying to make my app robust. I want to check if there are any zombie listeners. Is there a way to get a list of all active listeners in xdk?
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For any given object you can get a list of all active event listeners:
http://stackoverflow.com/questions/2518421/jquery-find-events-handlers-registered-with-an-object
Also, CDT an easily show you those as you navigate the DOM.
But regardless the approach, this will inform you as to what listeners are where. But figuring out why or what they are for is a completely different problem. As the author of the app, you should probably have a pretty good sense of what is waiting on what. Though, if you use a lot of third party components, then having a full understanding of every event handler is elusive.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page