Option name | Type | Description |
---|---|---|
owner | FacetedObject | an instance of FacetedObject subclass that stores the facet on its property with the same name as |
config | Object | optional facet configuration, used in subclasses |
milo.classes.Facet
Base Facet class is an ancestor of ComponentFacet class, the main building block in milo.
function Facet(owner, config) {
this.name = _.firstLowerCase(this.constructor.name);
this.owner = owner;
this.config = config || {};
this.init.apply(this, arguments);
}
init
method of subclass will be called by Facet constructor.
_.extendProto(Facet, {
init: function() {}
});