From: megacz Date: Fri, 30 Jan 2004 07:01:37 +0000 (+0000) Subject: 2003/06/18 05:44:55 X-Git-Tag: RC3~884 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=c228ff1027682c752c8646993465c3840137bd09 2003/06/18 05:44:55 darcs-hash:20040130070137-2ba56-d74aeae3f9c36f2b55fea4ad9d0dc4fa20b5300a.gz --- diff --git a/src/org/xwt/Box.java b/src/org/xwt/Box.java index 30ec605..c50ff7b 100644 --- a/src/org/xwt/Box.java +++ b/src/org/xwt/Box.java @@ -1182,7 +1182,7 @@ public final class Box extends JS.Scope { SpecialBoxProperty gph = (SpecialBoxProperty)SpecialBoxProperty.specialBoxProperties.get(name); if (gph != null) return gph.get(this); - Object ret = super.get((Object)name); + Object ret = super.get(name); if (name.startsWith("$") && ret == null) if (Log.on) Log.logJS(this, "WARNING: attempt to access " + name + ", but no child with id=\"" + name.substring(1) + "\" found"); return ret; @@ -1249,7 +1249,7 @@ public final class Box extends JS.Scope { return; } - super.put((Object)name, value); + super.put(name, value); // a bit of a hack, since titlebar is the only 'special' property stored in JSObject if (getParent() == null && surface != null) { diff --git a/src/org/xwt/js/JS.java b/src/org/xwt/js/JS.java index 1e246b1..1904e7b 100644 --- a/src/org/xwt/js/JS.java +++ b/src/org/xwt/js/JS.java @@ -101,6 +101,8 @@ public abstract class JS { /** transparent scopes are not returned by THIS */ public boolean isTransparent() { return super.isTransparent(); } public boolean has(Object key) { return super.has(key); } + public boolean get(Object key) { return super.get(key); } + public boolean put(Object key, Object val) { super.put(key, val); } public void declare(String s) { super.declare(s); } }