post-robot icon indicating copy to clipboard operation
post-robot copied to clipboard

Is there a way to test whether a handler is already set?

Open ricklang opened this issue 7 years ago • 4 comments

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) { .... });

ricklang avatar Dec 05 '17 16:12 ricklang

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()?

svenyonson avatar Dec 05 '17 20:12 svenyonson

Is this issue taken up already? Could I give it a try please?

Cijin avatar Oct 08 '20 02:10 Cijin

@Cijin This has already been taken up and PR created. Thank you for your interest.

mnicpt avatar Oct 08 '20 12:10 mnicpt

@mnicpt No worries at all. I got assigned another issue. :smile:

Cijin avatar Oct 08 '20 12:10 Cijin