events.addDelegateListener
events.addDelegateListener(eventType, selector, handler)
Parameters
- eventType
{String}
:The type of the event to virtually bind to delegates
- selector
{String}
:A CSS selector that matches all intended delegates
- handler
{function(event)}
:The function to call when the event is dispatched
Add an event as in [can-util/dom/events/events.addEventListener addEventListener] but with a selector matching child nodes ("delegates") for which the event should fire.
Delegate events are limited to firing in the bubble phase.