We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 918a130 commit 62f81c4Copy full SHA for 62f81c4
addons/web/static/src/core/utils/timing.js
@@ -11,10 +11,10 @@ import { browser } from "../browser/browser";
11
* Inspired by https://davidwalsh.name/javascript-debounce-function
12
* @param {Function} func
13
* @param {number} wait
14
- * @param {boolean} immediate
+ * @param {boolean} [immediate=false]
15
* @returns {Function}
16
*/
17
-export function debounce(func, wait, immediate) {
+export function debounce(func, wait, immediate = false) {
18
let timeout;
19
return function () {
20
const context = this;
0 commit comments