Ensured _.throttle nulls the timeoutId. [closes #129]

Former-commit-id: 24242f513e01adb2827cc3a5af6c8904098a9280
This commit is contained in:
John-David Dalton
2012-12-03 01:04:54 -08:00
parent 351b2b320e
commit 9bccc9c53c
6 changed files with 65 additions and 40 deletions

View File

@@ -3591,6 +3591,7 @@
if (remaining <= 0) {
clearTimeout(timeoutId);
timeoutId = null;
lastCalled = now;
result = func.apply(thisArg, args);
}