MCPcopy Index your code
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / callback

Function callback

script.js:157–166  ·  view source on GitHub ↗
(mutationList)

Source from the content-addressed store, hash-verified

155 if (interruptButton.style.display === 'block') {
156 interruptButton.click();
157 const callback = (mutationList) => {
158 for (const mutation of mutationList) {
159 if (mutation.type === 'attributes' && mutation.attributeName === 'style') {
160 if (interruptButton.style.display === 'none') {
161 generateButton.click();
162 observer.disconnect();
163 }
164 }
165 }
166 };
167 const observer = new MutationObserver(callback);
168 observer.observe(interruptButton, {attributes: true});
169 } else {

Callers 14

onOptionsAvailableFunction · 0.70
executeCallbacksFunction · 0.70
progressive_denoisingMethod · 0.50
p_sample_loopMethod · 0.50
before_componentMethod · 0.50
after_componentMethod · 0.50
sample_lcmFunction · 0.50
ddimFunction · 0.50
ddim_cfgppFunction · 0.50
plmsFunction · 0.50
after_updateMethod · 0.50
heun_stepFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected