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 player.dimension() #4704

Merged
merged 2 commits into from
Nov 1, 2017
Merged

refactor player.dimension() #4704

merged 2 commits into from
Nov 1, 2017

Conversation

kocoten1992
Copy link
Contributor

@kocoten1992 kocoten1992 commented Oct 31, 2017

Requirements Checklist

  • refactor player.dimension()

@kocoten1992
Copy link
Contributor Author

#4706 currently fail

@@ -656,17 +656,16 @@ class Player extends Component {
if (value === '') {
// If an empty string is given, reset the dimension to be automatic
this[privDimension] = undefined;
} else {
const parsedVal = parseFloat(value);
Copy link
Member

Choose a reason for hiding this comment

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

why not keep this variable? Then we won't need to parseFloat twice?

@gkatsev
Copy link
Member

gkatsev commented Oct 31, 2017

I fixed master build and reran the tests here and it's passing now :)

@gkatsev gkatsev merged commit ad1b47b into videojs:master Nov 1, 2017
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.

3 participants