Bump to v4.17.5.

This commit is contained in:
John-David Dalton
2018-02-02 21:11:07 -08:00
parent 528e134995
commit edff3e8d25
16 changed files with 130 additions and 34 deletions

View File

@@ -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) {