bmcmahen / on-deselect

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:JavaScript 85.1%Language:Makefile 14.9%