documentcloud/underscore — pull request #846 by spence (2012-11-01 17:29:27+00:00)
Title: Prevent misleading return value from debounce

Unless this is the desired functionality...

Setting `result` here is misleading. Consider:
```javascript
var x = 0;
var f = function() { return ++x; };
var g = _.debounce(f, 1000);
console.log(g()); // returns undefined
// f is called, x is incremented, and result is set to 1
setTimeout(function(){
console.log(g()); // returns 1
console.log(g()); // returns 1
console.log(g()); // returns 1
}, 1100);
```
It shouldn't set `result` since it returns the previously returned value on the next series of calls.