Skip to content

Commit

Permalink
docs(guides): fix typos in functions guide (#4035)
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-ben authored and gkatsev committed Feb 6, 2017
1 parent be27f2a commit 0fc2c1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guides/videojs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
Expand All @@ -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']
});
Expand Down

0 comments on commit 0fc2c1c

Please sign in to comment.