delegation

Implements event delegation.

delegation

Implements event delegation.

var delegation = require('delegation');
 
delegation(document, 'li', function(e) {
    console.log(this.nodeName); // "LI" 
});

MIT License.