-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Conversation
@@ -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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
videojs.registerTech()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mister-ben!
docs/guides/videojs.md
Outdated
@@ -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); |
There was a problem hiding this comment.
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?
No description provided.