Skip to content

[v2] feature: make EventsOff capable of removing multiple listeners #1822

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

Merged

Conversation

lyimmi
Copy link
Contributor

@lyimmi lyimmi commented Sep 1, 2022

This PR resolves #1797 feature request.

Changed EventsOff both in GO & JS to be able to remove multiple event listeners at a time. Updated the docs accordingly as well.

Tested on a new Wails project and an existing one, both worked properly on linux/amd64. Should be ok on others too, currently have no access to a windows machine. (I'll make a WM for testing.)

I'm open for any suggestions.

@leaanthony
Copy link
Member

Awesome! Thanks so much for doing this 🙏

@leaanthony leaanthony merged commit 7816b0b into wailsapp:master Sep 1, 2022
@lyimmi lyimmi deleted the feature/1797_events_off_var_args branch September 1, 2022 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider making 'EventsOff' accepting a vararg of event names
2 participants