1.0.1 • Published 9 years ago

delay-component v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

delay

delay the given fn.

Installation

$ npm install delay-component

Example

var el = document.querySelector('#search');
var delay = require('delay');
el.onkeyup = delay(200, function(e){
  var val = e.target.value;
  // do ajax search or something.
});

License

MIT

1.0.1

9 years ago

1.0.0

9 years ago