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

Provide default capture value #4

Closed
necolas opened this issue Feb 13, 2013 · 0 comments · Fixed by #5
Closed

Provide default capture value #4

necolas opened this issue Feb 13, 2013 · 0 comments · Fixed by #5

Comments

@necolas
Copy link
Contributor

necolas commented Feb 13, 2013

Although capture is optional in more recent browser versions, this wasn't always the case (like Firefox 6), so to be safe you should default capture to false.

event/index.js

Line 15 in 9bd0291

el.addEventListener(type, fn, capture);

event/index.js

Line 35 in 9bd0291

el.removeEventListener(type, fn, capture);

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 a pull request may close this issue.

2 participants