From 15b156512faa986b1787d5371af4a1ddbb28f57e Mon Sep 17 00:00:00 2001 From: liang feng Date: Tue, 12 Feb 2019 14:49:02 +0800 Subject: [PATCH] cancel old timer (#4139) --- lodash.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lodash.js b/lodash.js index 1d606f5e6..07aa4931f 100644 --- a/lodash.js +++ b/lodash.js @@ -10407,6 +10407,7 @@ } if (maxing) { // Handle invocations in a tight loop. + clearTimeout(timerId); timerId = setTimeout(timerExpired, wait); return invokeFunc(lastCallTime); }