2003/11/16 02:40:44
[org.ibex.core.git] / src / org / xwt / js / JSScope.java
index 8327ea1..54dc446 100644 (file)
@@ -46,7 +46,7 @@ public class JSScope extends JSCallable {
 
         public Object call(Object method, JSArray args) {
             if (method.equals("stringFromCharCode")) return stringFromCharCode(args);
-            else throw new JS.Exn("method not found");
+            return super.call(method, args);
         }
 
         public Object call1(Object method, Object arg0) {
@@ -61,12 +61,12 @@ public class JSScope extends JSCallable {
             case "escape": throw new JS.Exn("unimplemented");
             case "unescape": throw new JS.Exn("unimplemented");
             //#end
-            return null;
+            return super.call1(method, arg0);
         }
 
         public Object call2(Object method, Object arg1, Object arg2) {
             if (method.equals("parseInt")) return parseInt(arg1, arg2);
-            return null;
+            return super.call2(method, arg1, arg2);
         }
 
         private Object stringFromCharCode(JSArray args) {