X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fjs%2FInternal.java;h=4cddef106befadc0637dabd6ea0d86a46fba6412;hb=8c1756ef3fd42cc2f324baf47e13a83f51045efe;hp=6d1fece3527786623c964f46f87a00a82ae36d3a;hpb=2b1b2ef9bb8b8a34efb6329c552eea4f773d9466;p=org.ibex.core.git diff --git a/src/org/xwt/js/Internal.java b/src/org/xwt/js/Internal.java index 6d1fece..4cddef1 100644 --- a/src/org/xwt/js/Internal.java +++ b/src/org/xwt/js/Internal.java @@ -130,6 +130,7 @@ class Internal { final Object target = o; final String method = key.toString(); return new JSCallable() { + // FIXME public Object call(Object notUsed, JSArray args) { return callMethodOnPrimitive(target,method,args); } }; } @@ -138,8 +139,10 @@ class Internal { static class JSCallableStub extends JSCallable { private Object method; - private JSObj obj; - public JSCallableStub(JSObj obj, Object method) { this.obj = obj; this.method = method; } - public Object call(JSArray args) { return ((JSCallable)obj).call(method,args); } + private JS obj; + public JSCallableStub(JS obj, Object method) { this.obj = obj; this.method = method; } + public Object call(Object a0, Object a1, Object a2, Object[] rest, int nargs) { + return ((JSCallable)obj).callMethod(method, a0, a1, a2, rest, nargs); + } } }