Chapter 5. Classes: The Extras

The things we've learned about the MooTools class system in the previous chapter fall under the category of "essential knowledge." While they form the foundation of what we need to know about classes, there are several other topics related to the classes that we need to discuss. Instead of cramming them all together, we set aside a separate chapter for these additional topics.

In this chapter, we'll learn about the "extras" that are part of the MooTools class system and how we can use them to create better and more flexible classes.

Mutators

In a class declaration, adding the Extends and Implements keys changes the class itself: the first one makes a class inherit from a superclass, while the second adds properties ...

Get Pro JavaScript with MooTools: Learning Advanced JavaScript Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.