1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-06 11:51:07 +02:00

docs(guides): fix typos in functions guide (#4035)

This commit is contained in:
mister-ben 2017-02-06 19:41:57 +00:00 committed by Gary Katsevman
parent be27f2aa6e
commit 0fc2c1c7a4

View File

@ -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);
videojs.registerComponent('MySpecialButton', MySpecialButton);
// (optionally) add the new component as a default player child
myPlayer.addChild('MySepcialButton');
myPlayer.addChild('MySpecialButton');
```
## `getTech()`
@ -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);
var player = videojs('myplayer', {
techOrder: ['myTech', 'html5']
});