2002/05/19 00:02:50
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:47:27 +0000 (06:47 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:47:27 +0000 (06:47 +0000)
darcs-hash:20040130064727-2ba56-93eda5f4da31ad6012a362302f5fe8d8d56b1257.gz

CHANGES
src/org/xwt/util/JSObject.java

diff --git a/CHANGES b/CHANGES
index 5293097..7161c89 100644 (file)
--- a/CHANGES
+++ b/CHANGES
 
 18-May megacz Static.java: removed redundant debug message
 
+18-May megacz JSObject.java: fixed a public/private bug
+
index 84c7737..ddc7779 100644 (file)
@@ -119,6 +119,10 @@ public class JSObject implements Scriptable {
     public void put(String name, Scriptable start, Object value) {
         if (sealed) return;
         if (name == null || name.equals("")) return;
+
+        if (getPrivately(name, getCurrentFunctionSourceName()) != null)
+            putPrivately(name, value, getCurrentFunctionSourceName());
+
         for(Scriptable cur = Context.enter().currentFunction; cur != null; cur = cur.getParentScope())
             if (cur == this) {
                 putPrivately(name, value, getCurrentFunctionSourceName());