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:
NameTypeDescription
objectObject

An object to Add

callbackfunction

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:
NameTypeAttributesDefaultDescription
targetObject

The object to which to add event methods.

optionsObject<optional>
{}

Options for customizing the mixin behavior.

Properties
NameTypeAttributesDescription
eventBusKeystring<optional>

By default, adds a eventBusEl_ DOM element to the target object, which is used as an event bus. If the target object already has a DOM element that should be used, pass its key here.

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:
NameTypeDescription
objectObject

An object to test.

Returns:

boolean -

Whether or not the object appears to be evented.