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

Fix typos in functions guide #4035

Merged
merged 2 commits into from
Feb 6, 2017
Merged

Fix typos in functions guide #4035

merged 2 commits into from
Feb 6, 2017

Conversation

mister-ben
Copy link
Contributor

No description provided.

@@ -63,7 +63,7 @@ var html5 = new Html5(options);
var Html5 = videojs.getTech('Html5');
var MyTech = videojs.extend(Html5, {});
// Register the new Tech
VjsButton.registerTech('Tech', MyTech);
videojs.registerTech('MyTech', MyTech);
Copy link
Contributor Author

@mister-ben mister-ben Feb 6, 2017

Choose a reason for hiding this comment

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

videojs.registerTech() or Html5.registerTech() work here (but not MyTech.registerTech()). Which is prefered?

Copy link
Member

Choose a reason for hiding this comment

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

videojs.registerTech()

Copy link
Member

@gkatsev gkatsev left a comment

Choose a reason for hiding this comment

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

Thanks @mister-ben!

@@ -43,9 +43,9 @@ var VjsButton = videojs.getComponent('Button');
// Subclass the component (see 'extend' doc for more info)
var MySpecialButton = videojs.extend(VjsButton, {});
// Register the new component
VjsButton.registerComponent('MySepcialButton', MySepcialButton);
VjsButton.registerComponent('MySpecialButton', MySpecialButton);
Copy link
Member

Choose a reason for hiding this comment

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

can we change this to be videojs.registerComponent as well?

@gkatsev gkatsev merged commit 0fc2c1c into master Feb 6, 2017
@gkatsev gkatsev deleted the functionsguidetypo branch February 6, 2017 19:42
This pull request was closed.
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.

4 participants