Skip to content

Commit

Permalink
docs: fix typo, extends -> extend (#3789)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocoten1992 authored and gkatsev committed Nov 23, 2016
1 parent 41bd855 commit c5d1152
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guides/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Components
The Video.js player is built on top of a simple, custom UI components architecture. The player class and all control classes inherit from the `Component` class, or a subclass of `Component`.

```js
videojs.registerComponent('Control', videojs.extends(Component));
videojs.registerComponent('Button', videojs.extends(videojs.getComponent('Control')));
videojs.registerComponent('PlayToggle', videojs.extends(videojs.getComponent('Button')));
videojs.registerComponent('Control', videojs.extend(Component));
videojs.registerComponent('Button', videojs.extend(videojs.getComponent('Control')));
videojs.registerComponent('PlayToggle', videojs.extend(videojs.getComponent('Button')));
```

The UI component architecture makes it easier to add child components to a parent component and build up an entire user interface, like the controls for the Video.js player.
Expand Down

0 comments on commit c5d1152

Please sign in to comment.