Featureable
Configs
1
Configs
1features: Object
Specifies the features to create and associate with the instance. The keys of this object are the names of features. The values are config objects for those feature instances.
After construction, this property can be used to access the feature instances and even reconfigure them.
For example:
instance.features.amazing = {
// reconfigure this feature
}
This can also be done in bulk:
instance.features = {
amazing : {
// reconfigure this feature
},
// reconfigure other features
}
Properties
2
Properties
2Identifies an object as an instance of Featureable class, or subclass thereof.
Identifies an object as an instance of Featureable class, or subclass thereof.
Functions
1
Functions
1Returns true if the specified feature is active for this instance and false otherwise.
| Parameter | Type | Description |
|---|---|---|
name | String | The feature name |
Returns: Boolean