feat(main): Add base theme: This is the falcon theme out of the box.
This is falcon v3.1.2
This commit is contained in:
8
falcon/_dev/js/theme/utils/debounce.js
Normal file
8
falcon/_dev/js/theme/utils/debounce.js
Normal file
@ -0,0 +1,8 @@
|
||||
export default function debounce(func, timeout = 300) {
|
||||
let timer;
|
||||
|
||||
return (...args) => {
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(() => { func.apply(this, args); }, timeout);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user