X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fgraphics%2FHTML.java;h=419c9d1c38d7fd4eb967d556b994104e6355b969;hp=39079a3944d506ca32cb36ecc2d5c831106069cc;hb=0db31fc0dc88749cd8022790fd475df8b7b06c27;hpb=586485c446bc6870e08cfca8675a41442cca2c54 diff --git a/src/org/ibex/graphics/HTML.java b/src/org/ibex/graphics/HTML.java index 39079a3..419c9d1 100644 --- a/src/org/ibex/graphics/HTML.java +++ b/src/org/ibex/graphics/HTML.java @@ -54,17 +54,17 @@ public class HTML { private static boolean withinLI = false; // FEATURE: This is ugly - private static class JS extends org.ibex.js.JS.O { + private static class JS extends org.ibex.js.JS.Obj { public void put(String key, Object value) throws JSExn { if(value instanceof String) put(JSU.S(key),JSU.S((String)value)); else if(value instanceof Number) put(JSU.S(key), JSU.N((Number)value)); - else if(value == null) put(JSU.S(key),null); + else if(value == null) put(JSU.S(key), (JS)null); else throw new Error("FIXME"); } public Object _get(String key) throws JSExn { org.ibex.js.JS js = get(JSU.S(key)); - if(JS.isInt(js)) return new Integer(JS.toInt(js)); - return JS.toString(js); + if(JSU.isInt(js)) return new Integer(JSU.toInt(js)); + return JSU.toString(js); } }