Fixed typeof test on enumerated object result - is always string now.

git-svn-id: svn://10.0.0.236/trunk@56125 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com 1999-12-17 01:53:48 +00:00
parent dc38a4a602
commit eb947e2e0f

View File

@ -120,7 +120,7 @@
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 );