(
config
)
- Parameters:
-
config <Object>
Object with configuration property name/value pairs. The object can be used to provide default values for the objects published attributes.The config object can also contain the following non-attribute properties, providing a convenient way to configure events listeners and plugins for the instance, as part of the constructor call:
- on
- An event name to listener function map, to register event listeners for the "on" moment of the event. A constructor convenience property for the on method.
- after
- An event name to listener function map, to register event listeners for the "after" moment of the event. A constructor convenience property for the after method.
- bubbleTargets
- An object, or array of objects, to register as bubble targets for bubbled events fired by this instance. A constructor convenience property for the addTarget method.
- plugins
- A plugin, or array of plugins to be plugged into the instance (see PluginHost's plug method for signature details). A constructor convenience property for the plug method.