2003/06/18 05:44:55
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:01:37 +0000 (07:01 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:01:37 +0000 (07:01 +0000)
darcs-hash:20040130070137-2ba56-d74aeae3f9c36f2b55fea4ad9d0dc4fa20b5300a.gz

src/org/xwt/Box.java
src/org/xwt/js/JS.java

index 30ec605..c50ff7b 100644 (file)
@@ -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) {
index 1e246b1..1904e7b 100644 (file)
@@ -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); }
     }