Added disable all component handling

This commit is contained in:
Bryan Galdámez 2024-10-17 22:57:55 -06:00
parent d853fa8de4
commit 2f2881814e
3 changed files with 99 additions and 28 deletions

View file

@ -48,6 +48,7 @@ var ZenThemesCommon = {
);
}
}
return this.themes;
},
@ -105,4 +106,15 @@ var ZenThemesCommon = {
}
};
},
debounce(mainFunction, wait) {
let timerFlag;
return (...args) => {
clearTimeout(timerFlag);
timerFlag = setTimeout(() => {
mainFunction(...args);
}, wait);
};
},
};