Class: EventBus

EventBus()

Simple event bus for an application. Listeners are attached using the `on` and `off` methods. To raise an event, the `dispatch` method shall be used.

Constructor

new EventBus()

Source:

Methods

off(eventName, listener)

Parameters:
Name Type Description
eventName string
listener function
Source:

on(eventName, listener)

Parameters:
Name Type Description
eventName string
listener function
Source: