constructor new Event.Handler
new Event.Handler(element, eventName[, selector], callback)
Element) – The element to listen on.
String) – An event to listen for. Can be a standard browser event or a custom event.
String) – A CSS selector. If specified, will call
callbackonly when it can find an element that matches
selectorsomewhere in the ancestor chain between the event's target element and the given
Function) – The event handler function. Should expect two arguments: the event object and the element that received the event. (If
selectorwas given, this element will be the one that satisfies the criteria described just above; if not, it will be the one specified in the
Event.Handler. Will not begin observing until
Event.Handler#start is called.