Open ricklang opened 6 years ago
That would be useful for me as well, as I am getting an error that a handler has already been set when I try to open a child window multiple times in a session. Is there a way to cancel all listeners without storing each listener in a var at the time it is created? Something like postRobot.cancelAll()
?
Is this issue taken up already? Could I give it a try please?
@Cijin This has already been taken up and PR created. Thank you for your interest.
@mnicpt No worries at all. I got assigned another issue. :smile:
For example, how I test whether the following handler was already set? Looks like I can catch the exception. Just want to know whether there is a more elegant way.
postRobot.on('getUser', function(event) { .... });