2003/11/13 07:46:41
[org.ibex.core.git] / src / org / xwt / js / JS.java
index 6d964ea..f1f6726 100644 (file)
@@ -114,9 +114,9 @@ public abstract class JS {
         public int hashCode() { return graftee.hashCode(); }
         public Object get(Object key) { return replaced_key.equals(key) ? replaced_val : graftee.get(key); }
         public void put(Object key, Object val) { graftee.put(key, val); }
-        public void call(Object method, JSArray args) {
+        public Object call(Object method, JSArray args) {
             if (replaced_key.equals(method)) return ((JSCallable)replaced_val).call(null, args);
-            else if (graftee instanceof JSCallable) return graftee.call(method, args);
+            else if (graftee instanceof JSCallable) return ((JSCallable)graftee).call(method, args);
             else throw new JS.Exn("cannot call this value");
         }
         public Number coerceToNumber() { return graftee.coerceToNumber(); }