Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 455 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 455 Bytes

jquery-debounce

jquery-debounce is a jQuery plugin that allows you to easily debounce event callbacks.

How do I use it?

Signature

$.fn.debounce(event, callback, delay);

Example

$("#foo").debounce("click", function() { }, 500);

  • Debounce the click event on #foo for 500 milliseconds

Tests

Running the test suite requires RubyGems and the Bundler gem. To run the tests run rake jasmine