Featureable

Configs

1
features: 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
isFeatureable: Boolean= truereadonly
Identifies an object as an instance of Featureable class, or subclass thereof.
isFeatureable: Boolean= truereadonlystatic
Identifies an object as an instance of Featureable class, or subclass thereof.

Functions

1

Returns true if the specified feature is active for this instance and false otherwise.

ParameterTypeDescription
nameString

The feature name

Returns: Boolean