PDA

View Full Version : List of all EventListeners



JSassy
20 Jul 2017, 12:26 AM
Hi,

I need a list of all listeners, that are registered. But I also need to know which methods are bind to these events.
I am registering several events in controllers and I am wondering if there is any HashMap oder something else, that knows, which event refers to what method.

Thanks in advance,
Sassy

Gary Schlosberg
20 Jul 2017, 6:17 AM
Nothing in the framework that I know of. Here's a similar Touch discussion.
https://www.sencha.com/forum/showthread.php?247515

JSassy
20 Jul 2017, 9:29 AM
After debbuging a while, I found it out today:



Ext.application({
name: 'MyApp',
launch: function() {
window.MyAppScope = this;
}
});

MyAppScope.eventbus