Skip to content

Commit

Permalink
Started components doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
heff committed Dec 17, 2012
1 parent 21d2b20 commit a342598
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/components.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Components
===
The Video.js player is built on top of a simple custom UI components architecture. The player class and all control classes extend the Component class, or a subclass of Component.

```js
_V_.Control = _V_.Component.extend({});
_V_.Button = _V_.Control.extend({});
_V_.PlayToggle = _V_.Button.extend({});
```

(The Class interface itself is provided using John Resig's [simple class inheritance](http://ejohn.org/blog/simple-javascript-inheritance/) also found in [JSNinja](http://jsninja.com).

0 comments on commit a342598

Please sign in to comment.