Switch from MooTools each to JS forEach

This commit is contained in:
Thomas Piccirello 2025-06-08 22:57:57 -07:00
commit dbd19b314f
No known key found for this signature in database

View file

@ -2353,7 +2353,7 @@ window.qBittorrent.DynamicTable ??= (() => {
populateTable(root) { populateTable(root) {
this.fileTree.setRoot(root); this.fileTree.setRoot(root);
root.children.each((node) => { root.children.forEach((node) => {
this.#addNodeToTable(node, 0, root); this.#addNodeToTable(node, 0, root);
}); });
} }
@ -2366,7 +2366,7 @@ window.qBittorrent.DynamicTable ??= (() => {
rowId: node.rowId rowId: node.rowId
}); });
node.children.each((child) => { node.children.forEach((child) => {
this.#addNodeToTable(child, depth + 1, node); this.#addNodeToTable(child, depth + 1, node);
}); });
} }
@ -2869,7 +2869,7 @@ window.qBittorrent.DynamicTable ??= (() => {
populateTable(root) { populateTable(root) {
this.fileTree.setRoot(root); this.fileTree.setRoot(root);
root.children.each((node) => { root.children.forEach((node) => {
this.#addNodeToTable(node, 0, root); this.#addNodeToTable(node, 0, root);
}); });
} }
@ -2885,7 +2885,7 @@ window.qBittorrent.DynamicTable ??= (() => {
rowId: node.rowId, rowId: node.rowId,
}); });
node.children.each((child) => { node.children.forEach((child) => {
this.#addNodeToTable(child, depth + 1, node); this.#addNodeToTable(child, depth + 1, node);
}); });
} }