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

Prevent dupe events on enabled ClickableComponents (v5) #4357

Merged
merged 2 commits into from
May 15, 2017

Conversation

mister-ben
Copy link
Contributor

Description

Like #4316 for v6, this prevents multiple click handlers being added if an already enabled component is enabled. In the PR for six, ClickableComponent was tracking this.enabled_ but this is incompatible with v5 on a MenuButton which also changes the state of this.enabled_.

Specific Changes proposed

Removes event handlers in enable() before adding them.

Do we want the same fix implemented in a different way in 5 and 6 though?

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Change has been verified in an actual browser (Chome, Firefox, IE)
    • Unit Tests updated or fixed
  • Reviewed by Two Core Contributors

@gkatsev gkatsev added the 5.x label May 15, 2017
@gkatsev
Copy link
Member

gkatsev commented May 15, 2017

I don't think it's a huge deal if these are implemented different across the two releases lines. Though, consistency is nice.

@gkatsev gkatsev merged commit 3faea9f into videojs:5.x May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants