From c5d1152456e4037ad407ccb5cfa09ca1bb0ebe9d Mon Sep 17 00:00:00 2001 From: Chuong Date: Thu, 24 Nov 2016 01:56:03 +0700 Subject: [PATCH] docs: fix typo, extends -> extend (#3789) --- docs/guides/components.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/components.md b/docs/guides/components.md index 9bd6869300..944e4c7044 100644 --- a/docs/guides/components.md +++ b/docs/guides/components.md @@ -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.