delegation
Purpose
Implements event delegation.
Example
var delegate = ; ;
API
The module returns a function with four arguments:
parent
: the parent on which to listen for the eventevent
: the event to listen toselector
: the selector for the elements to delegate tohandler
: the event handler
Installation
npm install delegation
Contributors
License
MIT License.