About this.app.fire and this.app.on

Hi, all.

Is there any way to know where is the event fired and where is the event on ?

For example,
I write a fire event in Fire.js, and l write a listener in On.js.

One day, I find there’s a fire event in Fire.js, but I don’t remember that which script is listening on it.
Or,
I find there’s an on event in On.js, but I don’t remember that which script is firing it.

So, if we move mouse on this.app.fire, it will list all the scripts that are listening on it and list all the scripts that are firing the same custom event. That will be very great ! And vice versa.

Thank you !

This is something we are looking to improve in general. In the meantime, there is a workaround.

If you launch the game and open the Developer tools in Chrome, you can search in files in the sources view:

It isn’t ideal but should help you while we develop this feature.

1 Like

That’s a good idea !:grinning: