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

[Code] : Why you explicit the default value to false of useCapture while it's default value? #11

Open
alamenai opened this issue Jan 27, 2023 · 0 comments

Comments

@alamenai
Copy link

     this.days[i].addEventListener('click', (event) => this.handleDayClick(event, i), false);
     this.days[i].addEventListener('mouseover', (event) => this.handleDayHover(event, i), false);

In the above snippet, you set explicitly false to the useCapture parameter, while it's the default value. From MDN documentation.

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

No branches or pull requests

1 participant