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

Adding options in on helper #86

Closed
franpb14 opened this issue Mar 6, 2024 · 1 comment · Fixed by #90
Closed

Adding options in on helper #86

franpb14 opened this issue Mar 6, 2024 · 1 comment · Fixed by #90
Labels
enhancement New feature or request

Comments

@franpb14
Copy link
Contributor

franpb14 commented Mar 6, 2024

in addEventListener we can pass an object with some usefult options like once, capture or signal but right now we can't pass this options using the on helper. So my proposal is to add an optional param:
on(query, events, callback, options = {})

@markets markets added the enhancement New feature or request label May 7, 2024
@markets
Copy link
Member

markets commented May 7, 2024

Seems like this is a good idea actually. Please feel free to send a patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants