Fork me on GitHub

Now on: joopl.Event

Represents a multi-cast event.

An event is an observable object which notifies multiple objects listening event raises.

Constructor

joopl.Event

(
  • source
)
final

Defined in src\joopl.js:1257

Parameters:

  • source Object

    The object who will be raising this event

Properties

Methods

addEventListener

(
  • handler
)
Void

Defined in src\joopl.js:1292

Adds and binds a function to this event that will be called whenever this event is raised.

It supports unlimited event listeners and they will be called in order FIFO.

Parameters:

  • handler Function

    A function reference which handles the event

Returns:

Void:

addEventListener

(
  • handler
)
Void

Defined in src\joopl.js:1310

Removes and unbinds a function from this event.

Given function handler should be the one that was previously added with addEventListener.

Parameters:

  • handler Function

    A function reference which handles the event

Returns:

Void:

Properties

handlers

Unknown private

Defined in src\joopl.js:1274

Gets an array of event handlers listenting for event raise

source

Object private

Defined in src\joopl.js:1283

Gets the object who raises the event