mixins/evented.js
Mixins
EventedMixin
[module:evented~EventedMixin]($fb4ca6685755313a.md)
Methods
inner addEventedCallback(object, callback)
[mixins/evented.js](https://docs.videojs.com/mixins_evented.js.html)
, [line 55](https://docs.videojs.com/mixins_evented.js.html#line55)
Adds a callback to run after the evented mixin applied.
Parameters:
Name | Type | Description |
---|---|---|
object | Object | An object to Add |
callback | function | The callback to run. |
inner evented(target, optionsopt) → {Object}
[mixins/evented.js](https://docs.videojs.com/mixins_evented.js.html)
, [line 478](https://docs.videojs.com/mixins_evented.js.html#line478)
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
|
Returns:
Object -
The target object.
inner isEvented(object) → {boolean}
[mixins/evented.js](https://docs.videojs.com/mixins_evented.js.html)
, [line 42](https://docs.videojs.com/mixins_evented.js.html#line42)
Returns whether or not an object has had the evented mixin applied.
Parameters:
Name | Type | Description |
---|---|---|
object | Object | An object to test. |
Returns:
boolean -
Whether or not the object appears to be evented.