0.1.2 • Published 8 years ago

dynamic-timeouts v0.1.2

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

A simple separate utility for debounce which can also be found within the popular Underscore library.

How To

Node

var debounce = require('dynamic-timeouts');
debounce();

##Arguments func - The function that you would like debounce to hold on wait - The Time (in ms) debounce should wait before execution immediate - should debounce fire the function the first time immediatly and then start waiting until activity stops then starts again

##Usage

var debounce = require('dynamic-timeouts');
function testMe() {
    console.log('Test World');
};
$('#test').on('click', debounce(testMe, 300));