mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 22:52:12 -03:00
Refactor LoRA template with modular components and script updates
This commit is contained in:
8
static/js/utils/debounce.js
Normal file
8
static/js/utils/debounce.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// Debounce function
|
||||
export function debounce(func, wait) {
|
||||
let timeout;
|
||||
return function(...args) {
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(() => func.apply(this, args), wait);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user