From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/lodash/debounce.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'node_modules/lodash/debounce.js') diff --git a/node_modules/lodash/debounce.js b/node_modules/lodash/debounce.js index 04d7dfd31..205e49f34 100644 --- a/node_modules/lodash/debounce.js +++ b/node_modules/lodash/debounce.js @@ -108,9 +108,11 @@ function debounce(func, wait, options) { function remainingWait(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, - result = wait - timeSinceLastCall; + timeWaiting = wait - timeSinceLastCall; - return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result; + return maxing + ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) + : timeWaiting; } function shouldInvoke(time) { -- cgit v1.2.3