Class: EventObject

vef.events.EventObject(events)

A prototyp of a basic event interface. Classes might inherit from this class or provide the same shape by convention. The field-map "events" defines possible *event names* pointing to an array of *listeners* for a special class. For example: events = { 'changed': [] } Listeners a functions which are called with an optional payload object.

Constructor

new EventObject(events)

{@code events} are optional and can also be defined later.
Parameters:
Name Type Description
events Object (optional)
Author:
Source: