X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Fjava%2Forg%2Fibex%2Fxt%2FJSElement.java;h=1f07af26b8969f83ae903479ee61156d118672c2;hb=0ce341ef6d77e3b1cd3034d65f6451871be31a4e;hp=06a6f72e6f4feec00c1cd8977ff432dae3067fb4;hpb=1a9695b5601cd90a65c743c859931d7146bdeed3;p=org.ibex.xt-crawshaw.git diff --git a/src/java/org/ibex/xt/JSElement.java b/src/java/org/ibex/xt/JSElement.java index 06a6f72..1f07af2 100644 --- a/src/java/org/ibex/xt/JSElement.java +++ b/src/java/org/ibex/xt/JSElement.java @@ -28,9 +28,11 @@ public class JSElement extends JSScope implements XML.Element { for (int i=0; i < c.size(); i++) ((Tree.Leaf)c.get(i)).setParent(this); } - public void out(OutputStream o) throws IOException { throw new UnsupportedOperationException(); } - public void out(Writer w) throws IOException { - // grab all related attributes + public void out(OutputStream o) throws IOException { wrapped.out(o); } + public void out(Writer w) throws IOException { wrapped.out(w); } + + /** Load the attributes into the js scope. */ + protected void loadAttr() { try { XML.Attributes a = getAttributes(); for(int i=0; i < a.attrSize(); i++) {