Skip to content

Commit 0b93f06

Browse files
committedDec 7, 2020
Fixed a few more details
1 parent 913bcf2 commit 0b93f06

6 files changed

+10
-13
lines changed
 

‎modules/debounce.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ export default function debounce(func, wait, immediate) {
1010

1111
var later = function() {
1212
var passed = now() - previous;
13-
if (wait >= passed) {
13+
if (wait > passed) {
1414
timeout = setTimeout(later, wait - passed);
15-
1615
} else {
1716
timeout = null;
1817
if (!immediate) result = func.apply(context, args);
19-
// This check is needed because the argument function can recursively invoke debounced
18+
// This check is needed because the func can recursively invoke debounced
2019
if (!timeout) args = context = null;
2120
}
2221
};
@@ -38,4 +37,4 @@ export default function debounce(func, wait, immediate) {
3837
};
3938

4039
return debounced;
41-
}
40+
}

‎modules/throttle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ export default function throttle(func, wait, options) {
4444
};
4545

4646
return throttled;
47-
}
47+
}

‎underscore-esm.js

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎underscore-esm.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎underscore.js

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎underscore.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.