Module

events

Methods

# static listen(name, listener)

Subscribe to one kind of event

Parameters:
Name Type Description
name string

Name of the event

listener function

Listener function for the event. The detail of the event contains the information passed

View Source libs/events.js, line 20

# static remove(name, listener)

Unsubscribe to one kind of event with a exact listener

Parameters:
Name Type Description
name string

Name of the event

listener function

Listener function to remove

View Source libs/events.js, line 29

# static trigger(name, detailopt)

Trigger one event

Parameters:
Name Type Attributes Default Description
name string

Name of the event

detail object <optional>
{}

Detail of the event

View Source libs/events.js, line 9