Fixed test of enumerated property to use isNaN - a previous bug fix in

enumerated types stopped it from returning anything but strings here.
This commit is contained in:
rogerl%netscape.com 1999-12-11 00:44:02 +00:00
Родитель 8de0af5814
Коммит beb5b9cfda
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -106,10 +106,10 @@
this.pCount = 0;
for ( var p in o ) {
this.pCount++;
if ( typeof p == "number" ) {
if ( !isNaN(p) ) {
eval( "this["+p+"] = o["+p+"]" );
} else {
eval( "this." + p + " = o["+ p+"]" );
eval( "this." + p + " = o["+ p+"]" );
}
}
}