# Delegate Events - 140byt.es An implementation of delegation, based on jQuery's .on() function. Check out the demo here: http://jsbin.com/joxeji/edit?html,output Usage ----- delegate ( node, // The node to delegate the event to. event, // The event (I.E. "click"). handler, // A function to handle the event. selector, // CSS selector to match the target child nodes. [data] // [optional] Data to pass on to the handler function. ) Author ------ Created by Alexei Barnes ([@Alexei_Barnes](https://twitter.com/Alexei_Barnes)) at [AlexeiBarnes.com](http://alexeibarnes.com). For more information -------------------- See the [140byt.es](http://140byt.es) site for a showcase of entries (built itself using 140-byte entries!), and follow [@140bytes](http://twitter.com/140bytes) on Twitter.