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
parent 8de0af5814
commit beb5b9cfda

View File

@ -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+"]" );
}
}
}