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

Function appendList

src/lib/openFolder.js:976–981  ·  view source on GitHub ↗

* Insert folder into the list * @param {HTMLElement} $target The target element * @param {HTMLElement} $list The tile to be inserted

($target, $list)

Source from the content-addressed store, hash-verified

974 * @param {HTMLElement} $list The tile to be inserted
975 */
976function appendList($target, $list) {
977 $target = $target.nextElementSibling;
978 const $firstList = $target.firstElementChild;
979 if ($firstList) $target.insertBefore($list, $firstList);
980 else $target.append($list);
981}
982
983/**
984 * Get the active file tree for a folder element, if it has been loaded.

Callers 2

pasteFunction · 0.85
appendEntryToOpenFolderFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected