2003/09/19 05:01:37
[org.ibex.core.git] / src / org / xwt / XWT.java
index 33950f1..8efbc2c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
 package org.xwt;
 
 import java.io.*;
@@ -70,6 +70,10 @@ public final class XWT extends JS.Obj {
             return null;
         }});
 
+        super.put("load", new JS.Callable() { public Object call(JS.Array args) throws JS.Exn {
+            return Res.stringToResource(args.elementAt(0).toString());
+        }});
+
         super.put("theme", new JS.Callable() { public Object call(JS.Array args) throws JS.Exn {
                 if (args.length() != 2) return null;
                 if (args.elementAt(0) == null || args.elementAt(1) == null) return null;