Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ricklang opened this issue Dec 5, 2017 · 4 comments · May be fixed by #90 or #91
Open

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

ricklang opened this issue Dec 5, 2017 · 4 comments · May be fixed by #90 or #91

Comments

@ricklang
Copy link

ricklang commented Dec 5, 2017

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

@svenyonson
Copy link

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

@Cijin
Copy link

Cijin commented Oct 8, 2020

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

@mnicpt
Copy link
Contributor

mnicpt commented Oct 8, 2020

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

@Cijin
Copy link

Cijin commented Oct 8, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants