2003/07/07 04:41:01
[org.ibex.core.git] / src / org / xwt / js / JS.java
index 542d465..cdc7e35 100644 (file)
@@ -148,6 +148,12 @@ public abstract class JS {
             super(sourceName, firstLine, sourceCode, scope);
         }
     }
+    
+    /** a scope that is populated with js objects and functions normally found in the global scope */
+    public static class GlobalScope extends GlobalScopeImpl {
+        public GlobalScope() { this(null); }
+        public GlobalScope(JS.Scope parent) { super(parent); }
+    }
 
     public static final JS Math = new org.xwt.js.Math();