OpenTV Player Web HTML5

Module: evented

evented

mixins/evented.js

Methods

inneraddEventedCallback(object, callback)

Adds a callback to run after the evented mixin applied.

Name Type Description
object Object

An object to Add

callback function

The callback to run.

innerevented(target, options){Object}

Applies EventedMixin to a target object.

Name Type Default Description
target Object

The object to which to add event methods.

options Object {} optional

Options for customizing the mixin behavior.

Name Type Description
eventBusKey string 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:
Type Description
Object The target object.

innerisEvented(object){boolean}

Returns whether or not an object has had the evented mixin applied.

Name Type Description
object Object

An object to test.

Returns:
Type Description
boolean Whether or not the object appears to be evented.