优化bugfix

This commit is contained in:
kuangthree 2024-01-28 15:16:51 +08:00
parent 7242655241
commit c7574d5619
1 changed files with 7 additions and 7 deletions

View File

@ -2269,13 +2269,13 @@ export class Get extends Uninstantable {
* @returns {Iterable<HTMLElement>} 迭代器 * @returns {Iterable<HTMLElement>} 迭代器
*/ */
static *iterableChildNodes(node){ static *iterableChildNodes(node){
if(node._childNodesWatcher){ for(let i=0;i<arguments.length;i++){
for(let child of node._childNodesWatcher.childNodes){ let arg = arguments[i];
yield child; if(arg._childNodesWatcher){
} for(let child of arg._childNodesWatcher.childNodes){
}else{ yield child;
for(let i=0;i<arguments.length;i++){ }
let arg = arguments[i]; }else{
for(let j=0;j<arg.childElementCount;j++){ for(let j=0;j<arg.childElementCount;j++){
yield arg.childNodes[j]; yield arg.childNodes[j];
} }