Permalink
Browse files

Started components doc.

  • Loading branch information...
1 parent 21d2b20 commit a34259860f0100b13a9f10d2fcbeed33dba4acbd @heff heff committed Dec 17, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 docs/components.md
View
@@ -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.