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

Add get and set global options methods #2115

Closed
wants to merge 3 commits into from

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented May 1, 2015

The final part of #1998

@gkatsev
Copy link
Member Author

gkatsev commented May 1, 2015

Oh, I need to update the sandbox.

@@ -42,6 +43,11 @@ videojs.players = Player.players;

videojs.extends = extendsFn;

videojs.getGlobalOptions = () => options;
Copy link
Member

Choose a reason for hiding this comment

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

If we're going to start using fat arrows, make sure to make a note in the ES6 page on the wiki.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll add a note. I decided to use it here specifically because this function becomes so short as a fat arrow function.

@mmcc
Copy link
Member

mmcc commented May 4, 2015

👍

@heff
Copy link
Member

heff commented May 6, 2015

LGTM. Can you also add a note to the 5.0 changes wiki? This is actually a pretty significant change considering it's used in most example embeds.

https://github.com/videojs/video.js/wiki/5.0-Change-Details

@gkatsev gkatsev closed this in b65bad8 May 6, 2015
@gkatsev
Copy link
Member Author

gkatsev commented May 6, 2015

I'll get to that soon.

@gkatsev gkatsev deleted the global-options branch August 12, 2015 18:49
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