mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-26 17:54:02 +00:00
🔥 remove unused code
This commit is contained in:
@@ -86,7 +86,6 @@
|
||||
|
||||
this.attachEnabledButtonListener();
|
||||
this.attachControlTypeRadioListener();
|
||||
// this.attachTabNavChangeObserver();
|
||||
this.attachImageUploadListener();
|
||||
this.attachImageStateChangeObserver();
|
||||
this.attachA1111SendInfoObserver();
|
||||
@@ -186,22 +185,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Each time the active tab change, all tab nav buttons are cleared and
|
||||
* regenerated by gradio. So we need to reapply the active states on
|
||||
* them.
|
||||
*/
|
||||
attachTabNavChangeObserver() {
|
||||
new MutationObserver((mutationsList) => {
|
||||
for (const mutation of mutationsList) {
|
||||
if (mutation.type === 'childList') {
|
||||
this.updateActiveState();
|
||||
this.updateActiveControlType();
|
||||
}
|
||||
}
|
||||
}).observe(this.tabNav, { childList: true });
|
||||
}
|
||||
|
||||
attachImageUploadListener() {
|
||||
// Automatically check `enable` checkbox when image is uploaded.
|
||||
this.inputImage.addEventListener('change', (event) => {
|
||||
|
||||
Reference in New Issue
Block a user