jashkenas/underscore — pull request #1819 by ewr (2014-09-01 20:49:51+00:00)
Title: Loosen clock skew check on debounce

In fa352605, a sanity check was added to debounce to make sure our clock hadn't skewed earlier. If the debounced function is getting called under load, though, the last called ts can be the same as the current ts when the timeout runs. That causes `last` to be 0, and currently causes the debounced function to fire.

I wasn't sure how to add a test for this since it is so timing related, but I was able to see it pretty clearly by adding some logging statements inside the `later` function.