Software Archive
Read-only legacy content
17061 Diskussionen

Zombie Listeners?

Thomas_V_1
Einsteiger
364Aufrufe

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?

0 Kudos
1 Antworten
Chris_P_Intel
Mitarbeiter
364Aufrufe

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.

Antworten