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.
This commit is contained in:
norris%netscape.com 2000-01-06 22:54:15 +00:00
Родитель e7b56436fc
Коммит b684dbee7f
1 изменённых файлов: 1 добавлений и 5 удалений

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

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