This commit is contained in:
nboyd%atg.com 2000-10-02 17:10:00 +00:00
Родитель ad9247fc0a
Коммит 10bd56f484
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -101,7 +101,7 @@ public class NativeJavaObject implements Scriptable, Wrapper {
// We could be asked to modify the value of a property in the
// prototype. Since we can't add a property to a Java object,
// we modify it in the prototype rather than copy it down.
if (members.has(name, false) || prototype == null)
if (prototype == null || members.has(name, false))
members.put(name, javaObject, value, false);
else
prototype.put(name, prototype, value);

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

@ -101,7 +101,7 @@ public class NativeJavaObject implements Scriptable, Wrapper {
// We could be asked to modify the value of a property in the
// prototype. Since we can't add a property to a Java object,
// we modify it in the prototype rather than copy it down.
if (members.has(name, false) || prototype == null)
if (prototype == null || members.has(name, false))
members.put(name, javaObject, value, false);
else
prototype.put(name, prototype, value);