Interface: FeatureDependentInterface

FeatureDependentInterface

Class factory interface for features that are dependent on other features being
present on the host. Event dependencies will be listened for when a feature of
matching type is added to the host and will stop being listened for when one
is removed. If the feature is already present when constructed, events will
be listened for right away.

Properties:
Name Type Description
EVENT_DEPENDENCIES Object

Events that the feature should start/stop
listening for when a feature of type FeatureName is added/removed from the host.
Event dependencies should follow the signature:
{ FeatureName: { eventName: callbackName, ... }, ... }

Methods

(static) Mixin(BaseClass) → {Class}

Creates a class that implements FeatureDependentInterface and extends
a specified base class.

Parameters:
Name Type Description
BaseClass Class

The class to extend.

Returns:

A class that extends BaseClass and implements FeatureDependentInterface.

Type
Class

discard()