Loading problem…
Implement a delegate(root, selector, eventType, handler) utility that uses event delegation to handle events from matching elements within a root element.
root for the specified eventType.selector, starting from the event target and searching upward. The root itself may match.handler if the matched element is within root.handler with this bound to the matched element, the original event as its argument, and event.delegateTarget set to the matched element.