MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / expandAll

Function expandAll

ui/media/js/utils.js:144–154  ·  view source on GitHub ↗
(selector)

Source from the content-addressed store, hash-verified

142}
143
144function expandAll(selector) {
145 const collapsibleElems = document.querySelectorAll(selector); // needs to have ";"
146
147 [...collapsibleElems].forEach((elem) => {
148 const isActive = elem.classList.contains("active")
149
150 if (!isActive) {
151 elem?.click()
152 }
153 })
154}
155
156
157function permute(arr) {

Callers 2

embeddingsExpandAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected