mixins/evented.js
- Source
Mixins
Methods
(inner) addEventedCallback(target, callback)
Adds a callback to run after the evented mixin applied.
Parameters:
Name | Type | Description |
---|---|---|
target | Object | An object to Add |
callback | function | The callback to run. |
- Source
(inner) evented(target, optionsopt) → {Object}
Applies EventedMixin to a target object.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
target | Object | The object to which to add event methods. | ||||||||||
options | Object | <optional> | {} | Options for customizing the mixin behavior. Properties
|
- Source
Returns:
The target object.
- Type:
- Object
(inner) isEvented(object) → {boolean}
Returns whether or not an object has had the evented mixin applied.
Parameters:
Name | Type | Description |
---|---|---|
object | Object | An object to test. |
- Source
Returns:
Whether or not the object appears to be evented.
- Type:
- boolean