Parent Function
Keywords function, listener
See also event.*


Events are dispatched to listeners. Event listeners can be either functions or table objects.

In both cases, when an event occurs, the listener will be invoked and be supplied with a table representing the event. All events have a name property that corresponds to the name you use to register the event.

For more information, see the Basic Interactivity and Event Detection guide.