Class: EventEmitter

Odin. EventEmitter

new EventEmitter()

Source:

Methods

<static> EventEmitter.extend(child, parent)

Parameters:
Name Type Description
child constructor
parent constructor
Source:
Returns:
child

<static> EventEmitter#emit(type)

emits event type
Parameters:
Name Type Description
type string
Source:
Returns:
this

<static> EventEmitter#listenTo(obj, type, listener, ctx)

attaches function to an event on another object
Parameters:
Name Type Description
obj object
type string
listener function
ctx object
Source:
Returns:
this

<static> EventEmitter#off(type, listener, ctx)

removes function from an event
Parameters:
Name Type Description
type string
listener function
ctx object
Source:
Returns:
this

<static> EventEmitter#on(type, listener, ctx)

attaches function to an event
Parameters:
Name Type Description
type string
listener function
ctx object
Source:
Returns:
this

<static> EventEmitter#once(type, listener, ctx)

attaches function to an event, on the first call its removed
Parameters:
Name Type Description
type string
listener function
ctx object
Source:
Returns:
this