mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Switch from MooTools each to JS forEach
This commit is contained in:
parent
352221ebae
commit
dbd19b314f
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue