Class: EventDispatcher

lime.events.EventDispatcher

new lime.events.EventDispatcher(director)

EventDispatcher object. Deals with event handlers
Parameters:
Name Type Description
director lime.Director Director object.
Source:

Summary

Methods
handleEvent(e)
Handle DOM event
register(node, eventType)
Register the event listener for node
release(node, eventType)
Release the event listener for node
swallow(e, type, handler)
Setup swallow rule for an event. Swallow means that next events from same interaction will go straight to the handler
updateDispatchOrder(node)
Update order of handler nodes. Called on tree changes.

Methods

handleEvent(e)

Handle DOM event
Parameters:
Name Type Description
e Event Event.
Source:

register(node, eventType)

Register the event listener for node
Parameters:
Name Type Description
node lime.Node Node that responds to events.
eventType string type of event to listen.
Source:

release(node, eventType)

Release the event listener for node
Parameters:
Name Type Description
node lime.Node Node that responds to events.
eventType string type of event to release.
Source:

swallow(e, type, handler)

Setup swallow rule for an event. Swallow means that next events from same interaction will go straight to the handler
Parameters:
Name Type Description
e lime.events.Event Event.
type string Event type.
handler function Function to call.
Source:

updateDispatchOrder(node)

Update order of handler nodes. Called on tree changes.
Parameters:
Name Type Description
node lime.Node Node that has changed.
Source: