mirror of
https://github.com/bendtherules/UiQuestions.git
synced 2026-08-18 13:52:50 +00:00
fix queue append
This commit is contained in:
@@ -237,7 +237,7 @@ while (queue.length > 0) {
|
|||||||
const item = queue.shift();
|
const item = queue.shift();
|
||||||
console.log(item);
|
console.log(item);
|
||||||
if (item.hasChildNodes()) {
|
if (item.hasChildNodes()) {
|
||||||
queue.push(Array.from(item.childNodes));
|
queue = queue.concat([...item.childNodes]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user