mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 17:53:00 +02:00
[refactor] Moved 'appendLineBreaks' to its own TS file
This commit is contained in:
@@ -84,13 +84,6 @@ function createAccordionElement(params) {
|
||||
return [li, hdr, panel];
|
||||
}
|
||||
|
||||
//Appends n line breaks (as children) to the Element el
|
||||
function appendLineBreaks(el, n) {
|
||||
for (var i = 0; i < n; ++i) {
|
||||
el.appendChild(createElement("br"));
|
||||
}
|
||||
}
|
||||
|
||||
function clearSelector(selector) {
|
||||
for (var i = selector.options.length - 1; i >= 0; --i) {
|
||||
selector.remove(i);
|
||||
@@ -117,6 +110,5 @@ export {sizeOfObject,
|
||||
clearEventListenersEl,
|
||||
removeElement,
|
||||
createAccordionElement,
|
||||
appendLineBreaks,
|
||||
removeChildrenFromElement,
|
||||
clearSelector};
|
||||
|
||||
Reference in New Issue
Block a user