dumpDOM debug function (not shipped) now accepts ID in addition to DOM elements.

This commit is contained in:
chanial%noos.fr 2003-12-19 02:03:29 +00:00
Родитель d130654799
Коммит a1e62f84ee
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1673,6 +1673,9 @@ function dumpDOM (aElement, aIndent)
{
if (!aElement)
return;
if (typeof(aElement) == "string")
aElement = document.getElementById(aElement);
if (!aIndent)
aIndent = 0;
for (var i=0; i<aIndent*2; ++i)