- JSObject o = new JSObject();
- o.put("$name", null, c.localName);
- for(int i=0; i<c.len; i++) o.put(c.keys[i], null, c.vals[i]);
- o.put("$numchildren", null, new Integer(0));
+ JS o = new JS.Obj();
+ o.put("$name", c.localName);
+ for(int i=0; i<c.len; i++) o.put(c.keys[i], c.vals[i]);
+ o.put("$numchildren", new Integer(0));