Code optomization suggested by Brendan Eich.

This commit is contained in:
hangas%netscape.com 1999-06-22 21:31:58 +00:00
Родитель 4f1d65bded
Коммит 46c5a761fe
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -57,14 +57,10 @@ function DumpNodeAndChildren(node, prefix)
}
}
// children of nodes (other than frames)
else
{
var child = 0;
while ( node.childNodes && child < node.childNodes.length )
else if ( node.childNodes )
{
for ( var child = 0; child < node.childNodes.length; child++ )
DumpNodeAndChildren(node.childNodes[child], prefix + " ");
child++;
}
}
}