X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fjs%2FJS.java;h=3c8298fe1a51a35e4462b747fd44c718154fe6f7;hb=82eb6de96a3783318a9bfcb0d6a24f306e52b262;hp=1904e7b27fbf77771e15015a65f0c195a68b7ff2;hpb=c228ff1027682c752c8646993465c3840137bd09;p=org.ibex.core.git diff --git a/src/org/xwt/js/JS.java b/src/org/xwt/js/JS.java index 1904e7b..3c8298f 100644 --- a/src/org/xwt/js/JS.java +++ b/src/org/xwt/js/JS.java @@ -92,6 +92,8 @@ public abstract class JS { public Object elementAt(int i) { return super.elementAt(i); } public void addElement(Object o) { super.addElement(o); } public void setElementAt(Object o, int i) { super.setElementAt(o, i); } + public Object get(Object key) { return super._get(key); } + public void put(Object key, Object val) { super._put(key, val); } } /** Any object which becomes part of the scope chain must support this interface */ @@ -101,8 +103,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 Object get(Object key) { return super._get(key); } + public void put(Object key, Object val) { super._put(key, val); } public void declare(String s) { super.declare(s); } } @@ -113,7 +115,6 @@ public abstract class JS { /** a Callable which was compiled from JavaScript code */ public static class CompiledFunction extends CompiledFunctionImpl { - public Object call(JS.Array args, JS.Scope scope) throws JS.Exn { return super.call(args, scope); } CompiledFunction(String sourceName, int firstLine, Reader sourceCode, Scope scope) throws IOException { super(sourceName, firstLine, sourceCode, scope); }