From: megacz Date: Fri, 30 Jan 2004 06:47:27 +0000 (+0000) Subject: 2002/05/19 00:02:50 X-Git-Tag: RC3~1731 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=98d4e4ca2b0a251a5b1f4b105292e7f09681fa20;p=org.ibex.core.git 2002/05/19 00:02:50 darcs-hash:20040130064727-2ba56-93eda5f4da31ad6012a362302f5fe8d8d56b1257.gz --- diff --git a/CHANGES b/CHANGES index 5293097..7161c89 100644 --- a/CHANGES +++ b/CHANGES @@ -166,3 +166,5 @@ 18-May megacz Static.java: removed redundant debug message +18-May megacz JSObject.java: fixed a public/private bug + diff --git a/src/org/xwt/util/JSObject.java b/src/org/xwt/util/JSObject.java index 84c7737..ddc7779 100644 --- a/src/org/xwt/util/JSObject.java +++ b/src/org/xwt/util/JSObject.java @@ -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());