Ensure _.debounce and _.throttle reset lastCall after cancelling.

This commit is contained in:
Graeme Yeates
2015-06-20 19:42:16 -04:00
committed by jdalton
parent 660bc2eb21
commit 889c184ba3
2 changed files with 24 additions and 0 deletions

View File

@@ -7792,6 +7792,7 @@
if (maxTimeoutId) {
clearTimeout(maxTimeoutId);
}
lastCalled = 0;
maxTimeoutId = timeoutId = trailingCall = undefined;
}