mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
cancel old timer (#4139)
This commit is contained in:
committed by
John-David Dalton
parent
bda6f2795f
commit
15b156512f
@@ -10407,6 +10407,7 @@
|
|||||||
}
|
}
|
||||||
if (maxing) {
|
if (maxing) {
|
||||||
// Handle invocations in a tight loop.
|
// Handle invocations in a tight loop.
|
||||||
|
clearTimeout(timerId);
|
||||||
timerId = setTimeout(timerExpired, wait);
|
timerId = setTimeout(timerExpired, wait);
|
||||||
return invokeFunc(lastCallTime);
|
return invokeFunc(lastCallTime);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user