mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
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:
parent
8de0af5814
commit
beb5b9cfda
@ -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+"]" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user