emit an event when a selection is deselected. pairs with yields/on-select
JavaScript Makefile
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
index.js
package.json

Readme.md

on-deselect

emit an event when a selection is deselected. pairs with yields/on-select

Installation

Install with component(1) or NPM:

$ component install bmcmahen/on-deselect
$ npm install on-deselect

Usage

var select = require('on-select');
var deselect = require('on-deselect');
select(el, function(e){
  console.log('on select');
  deselect(el, function(e){
    console.log('on deselect');
  }); 
});

License

MIT