partial update of core for new js stuff
[org.ibex.core.git] / src / org / ibex / graphics / HTML.java
index e34704e..39079a3 100644 (file)
@@ -1,4 +1,7 @@
-// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the GNU General Public License version 2 ("the License").
+// You may not use this file except in compliance with the License.
+
 package org.ibex.graphics;
 
 import java.util.*;
@@ -53,13 +56,13 @@ public class HTML {
     // FEATURE: This is ugly
     private static class JS extends org.ibex.js.JS.O {
         public void put(String key, Object value) throws JSExn {
-            if(value instanceof String) put(JS.S(key),JS.S((String)value));
-            else if(value instanceof Number) put(JS.S(key), JS.N((Number)value));
-            else if(value == null) put(JS.S(key),null);
+            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 throw new Error("FIXME");
         }
         public Object _get(String key) throws JSExn {
-            org.ibex.js.JS js = get(JS.S(key));
+            org.ibex.js.JS js = get(JSU.S(key));
             if(JS.isInt(js)) return new Integer(JS.toInt(js));
             return JS.toString(js);
         }