m-gagne/limit.js — pull request #2 by sergeymakoveev (2013-01-28 12:21:39+00:00)
Title: add 'force' argument to function returned from  .debounce(wait)

```javascript
/**
* @param {boolean} force
* true value in this param allows run "debounced" function immediately
*/
return function (force) {
var self = this,
args = arguments;

function complete() {
baseFunction.apply(self, args);
timer = null;
}

if (timer) {
clearTimeout(timer);
}

if (force)
complete();
else
timer = setTimeout(complete, wait);

};
```