Skip to content
SinisterRectus edited this page Nov 4, 2016 · 13 revisions

[description]

Class Methods

emit(name[, ...])

Emits a named event with an optional variable amount of arguments.

listenerCount(name)

Returns the number of listeners that are registered to a named event.

listeners(name)

Returns a table of listeners registered to a named event.

on(name, listener)

Registers a listener function that is called every time a named event is emitted.

once(name, listener)

Registers a listener function that is called once and unregistered when a named event is emitted.

propagate(name, target)

Causes all named event emissions to propagates to another target emitter.

removeAllListeners(name)

Unregisters all listeners from a named event.

removeListener(name, listener)

Unregisters a listener from a named event.

Clone this wiki locally