addEvent
Add a custom event to the global event registry.
addEvent( event [, eventType ] )
var removeReturnEvent = domEvents.addEvent(enterEvent, "return");
Parameters
- event
{EventDefinition}
:The custom event definition.
- eventType
{String}
:The event type to associated with the custom event.
Returns
{function}
:
The callback to remove the custom event from the registry.