# tiny-delegate **Repository Path**: mirrors_scottcorgan/tiny-delegate ## Basic Information - **Project Name**: tiny-delegate - **Description**: Event delegation for DOM events - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tiny-delegate Event delegation for DOM events [![browser support](https://ci.testling.com/scottcorgan/tiny-delegate.png)](https://ci.testling.com/scottcorgan/tiny-delegate) ## Install ``` npm install tiny-delegate --save ``` ## Usage ### Browserify ```js var delegate = require('tiny-delegate'); var bind = delegate('body'); bind('.some-element', 'click', function (e) { // Do something }); ``` ### Standalone ```html ``` ```js var delegate = window.tinyDelegate; var bind = delegate('body'); bind('.some-element', 'click', function (e) { // Do something }); ``` ## Run Tests Requires [Phantomjs](http://phantomjs.org/download.html) is installed ``` npm install npm test ```