Test didn't work with the Rhino feature of reflecting bean properties as JavaScript propertes: getClass() becomes
a "class" property, and eval'ing a property name of "class" causes a syntax error. git-svn-id: svn://10.0.0.236/trunk@57026 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
381c6da070
commit
e910eaed02
@ -120,11 +120,7 @@
|
||||
this.pCount = 0;
|
||||
for ( var p in o ) {
|
||||
this.pCount++;
|
||||
if (!isNaN(p)) {
|
||||
eval( "this["+p+"] = o["+p+"]" );
|
||||
} else {
|
||||
eval( "this." + p + " = o."+ p );
|
||||
}
|
||||
this[p] = o[p];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user