Détail du package

on-deselect

bmcmahen28MIT1.1.1

emit an event whenever text deselection occurs

range, selection, deselect

readme

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

changelog

1.1.1

    • fix silly bug that didn't correctly call window.getSelection

1.1.0

    • touch support

1.0.2

    • bind to window for more reliable deselection event

1.0.1

  • fix illegal invocation error

1.0.0

  • add package.json
  • remove silly deps