MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / collapsed

Function collapsed

src/lib/openFolder.js:289–297  ·  view source on GitHub ↗

* Gets weather the folder is collapsed or not * @param {HTMLElement} $el * @param {boolean} isFile * @returns

($el, isFile)

Source from the content-addressed store, hash-verified

287 * @returns
288 */
289function collapsed($el, isFile) {
290 if (!$el.isConnected) return true;
291 $el = $el.parentElement;
292 if (!isFile) {
293 $el = $el.parentElement;
294 }
295
296 return $el.previousElementSibling.collapsed;
297}
298
299/**
300 * Handle click event

Callers 1

pasteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected