Skip to content

Commit 62f81c4

Browse files
committed
[FIX] web: fix debounce linter error
1 parent 918a130 commit 62f81c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/web/static/src/core/utils/timing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import { browser } from "../browser/browser";
1111
* Inspired by https://davidwalsh.name/javascript-debounce-function
1212
* @param {Function} func
1313
* @param {number} wait
14-
* @param {boolean} immediate
14+
* @param {boolean} [immediate=false]
1515
* @returns {Function}
1616
*/
17-
export function debounce(func, wait, immediate) {
17+
export function debounce(func, wait, immediate = false) {
1818
let timeout;
1919
return function () {
2020
const context = this;

0 commit comments

Comments
 (0)