July 2011
Intermediate to advanced
276 pages
5h 11m
English
MooTools, an extensible JavaScript library, begins with a base Class and then Implements and Extends classes into useful and reusable objects.
Implement the recipes in this chapter to extend what MooTools can do for you:
The "base class" is a function, a method, that allows extension. Just what does extending a class entail? Buckle up and let us take a drive.
Just to show the output of our work, create a DIV that will be our canvas.
<div id="mycanvas"></div>
Creating a class from the ...