tool_lp/event_base

Description:
  • Event base javascript module.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Event base javascript module.

Methods

(inner) _trigger(type, data)

Description:
  • Trigger an event.

Source:
Parameters:
Name Type Description
type String

The type of event.

data Object

The data to pass to the listeners.

(inner) on(type, handler)

Description:
  • Register an event listener.

Source:
Parameters:
Name Type Description
type String

The event type.

handler function

The event listener.