2002/08/18 05:30:45
[org.ibex.core.git] / src / org / xwt / Static.java
index 0974666..3376d02 100644 (file)
@@ -18,8 +18,7 @@ public class Static extends JSObject {
         if (ret != null) return ret;
         if (resourcename.indexOf('.') != -1)
             createStatic(resourcename.substring(0, resourcename.lastIndexOf('.')), true);
-        ret = new Static(resourcename, false);
-        cache.put(resourcename, ret);
+        ret = new Static(resourcename, isPackage);
         return ret;
     }
 
@@ -59,6 +58,6 @@ public class Static extends JSObject {
         return getStatic(resourcename + (resourcename.length() == 0 ? "" : ".") + name);
     }
 
-    static { createStatic(""); }
+    static { createStatic("", true); }
 
 }