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

Allow Plyr.setup event listeners to be set up as separate event listeners #703

Merged
merged 1 commit into from
Nov 4, 2017

Conversation

gurupras
Copy link
Contributor

@gurupras gurupras commented Nov 1, 2017

This allows the setup listeners to do things like
preventDefault()/stopImmediatePropagation() and have them work

Link to related issue (if applicable)

There is an issue comment

Sumary of proposed changes

Earlier, if a listener was specified during Plyr.setup(), we set up one event handler with both the provided listener (userListener) as well as the defaultListener.

Now, each of these is attached as a separate event listener (userListener being attached first).
This ensures that preventDefault()/stopImmediatePropagation() are handled correctly.

Task list

rather than in-conjunction with defaultListener

This allows the setup listeners to do things like
preventDefault()/stopImmediatePropagation() and have them work
@sampotts
Copy link
Owner

sampotts commented Nov 4, 2017

Cheers - will retrofit this to develop

@sampotts sampotts merged commit 5abf7e9 into sampotts:master Nov 4, 2017
filips123 pushed a commit to filips123/plyr that referenced this pull request Nov 22, 2018
Allow Plyr.setup event listeners to be set up as separate event listeners
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.

None yet

2 participants