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

fix(ElementEvents): ElementEvents.defaultListenerOptions allows to set default options when subscribing to events #659

Merged
merged 3 commits into from
Mar 19, 2019

Conversation

sebastien-roch
Copy link
Contributor

ElementEvents.subscribe will set capture to true be default if not explicitely passed in argument. This is not the standard behavior of the native addEventListener() and confuses developers. This new options let you define the default behavior.

Fixes issue #657

…t default options when subscribing to events

ElementEvents.subscribe will set capture to true be default if not explicitely passed in argument. This is not the standard behavior of the native addEventListener() and confuses developers. This new options let you define the default behavior.

Fixes issue #657
src/element-events.js Outdated Show resolved Hide resolved
@CLAassistant
Copy link

CLAassistant commented Mar 18, 2019

CLA assistant check
All committers have signed the CLA.

@sebastien-roch
Copy link
Contributor Author

Sorry I just had to force-push last commits to fix the author e-mail address.

src/element-events.js Outdated Show resolved Hide resolved
Copy link
Member

@bigopon bigopon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks @sebastien-roch

@EisenbergEffect EisenbergEffect merged commit 10a97f9 into aurelia:develop Mar 19, 2019
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.

4 participants