frame-debounce
Decorate a function so that it only fires once per frame, using `requestAnimationFrame` in the browser and `setImmediate` or `process.nextTick` in node.
Last updated 6 years ago by hughsk .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install frame-debounce 
SYNC missed versions from official npm registry.

frame-debounce stable

Decorate a function so that it only fires once per frame, using requestAnimationFrame in the browser and setImmediate or process.nextTick in node.

Usage

NPM

debounced = debounce(fn, [immediate])

Returns a decorated version of fn, that can only be called once per frame

See Also

License

MIT. See LICENSE.md for details.

Current Tags

  • 1.0.1                                ...           latest (6 years ago)

3 Versions

  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 12
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |