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

refactor: Deprecated id setting, instead get the id from Vjs player. #625

Merged
merged 3 commits into from May 23, 2018

Conversation

ypavlotsky
Copy link
Contributor

No description provided.

@ypavlotsky ypavlotsky requested a review from shawnbuso May 22, 2018 14:49
@@ -266,7 +266,7 @@ PlayerWrapper.prototype.onReadyForPreroll = function() {
PlayerWrapper.prototype.onPlayerReady = function() {
this.h5Player =
document.getElementById(
this.controller.getSettings().id).getElementsByClassName(
this.controller.getPlayerId()).getElementsByClassName(
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the same class - can't we just put this.getPlayerId() here and leave the controller out of it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor Author

@ypavlotsky ypavlotsky left a comment

Choose a reason for hiding this comment

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

Made requested change.

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