Permalink
Browse files

fixing the code example for extensability

  • Loading branch information...
1 parent 36a17f0 commit 447a9cbb804a816fff472591a26861ee11d3a68b @tjvantoll committed Feb 25, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 README.markdown
View
@@ -45,15 +45,15 @@ clearCycle - Clear the interval created by cycle.
The following technique can be used to extend PictureCube. This example creates an AwesomeCube that inherits the base methods from PictureCube's prototype.
-AwesomeCube = function(node, images) {
- PictureCube.apply(this, [node, images]);
-};
-AwesomeCube.prototype = new PictureCube();
-AwesomeCube.prototype.newMethod = function() {
- //this.cube, this.images, this.goto, this.cycle
- //and this.clearCycle are available to the new
- //function.
-};
+ AwesomeCube = function(node, images) {
+ PictureCube.apply(this, [node, images]);
+ };
+ AwesomeCube.prototype = new PictureCube();
+ AwesomeCube.prototype.newMethod = function() {
+ //this.cube, this.images, this.goto, this.cycle
+ //and this.clearCycle are available to the new
+ //function.
+ };
## Limitations

0 comments on commit 447a9cb

Please sign in to comment.