npm.io
0.1.2 • Published 10 years ago

dynamic-timeouts

Licence
ISC
Version
0.1.2
Deps
0
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

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));

Keywords