- Class system
- Controller xdom
- Relational model
- Filter collection
- List controller
- Best practices
- Building/load order
The Composer class system is the base building block of all the objects Composer provides (Model, Controller, etc). It is designed to be a standalone component that doesn’t necessarily need to be part of Composer.
This is the main export of the class system:
Composer.Class.extend(...) are the same.
Classes can be extended two ways. The vanilla, simple way is
Class.extend :: function(definition)
Composer.merge_extend :: function(class, array_of_property_names)
Another way, which is used internally in Composer, is very similar to the above extension method. It allows a class to additively extend certain static properties of the parent class. This sounds a bit esoteric, so let’s dive in:
A class contructor is specified by its
The class system allows calling parent methods using