2003/07/05 02:38:15
[org.ibex.core.git] / src / org / xwt / js / ArrayImpl.java
index 5fc8528..13f7d80 100644 (file)
@@ -25,10 +25,6 @@ class ArrayImpl extends JS.Obj {
     }
     // we use _get instead of get solely to work around a GCJ bug
     public Object _get(Object key) throws JS.Exn {
-        // FIXME: HACK!
-        if (key.equals("cascade")) return org.xwt.Trap.cascadeFunction;
-        if (key.equals("trapee")) return org.xwt.Trap.currentTrapee();
-        if (key.equals("trapname")) return org.xwt.Trap.currentTrapname();
         if (key.equals("length")) return new Long(vec.size());
         if (key.equals("push")) return new JS.Callable() {
             public Object call(JS.Array args) {
@@ -74,5 +70,7 @@ class ArrayImpl extends JS.Obj {
     public Object elementAt(int i) { return vec.elementAt(i); }
     public void addElement(Object o) { vec.addElement(o); }
     public void setElementAt(Object o, int i) { vec.setElementAt(o, i); }
+    
+    public String typeName() { return "array"; }
 }