X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fjs%2FJS.java;h=cdc7e359d9630c89df119b173dcedda79d1db45c;hb=e8442c40f5b8c03a4e6993cbcc9ce64dddab6a90;hp=542d4652d7085ac040ad18f069ce4de6b2aea943;hpb=1da33fe9e7c5104ec5d0b9b312d1114fdf2931be;p=org.ibex.core.git diff --git a/src/org/xwt/js/JS.java b/src/org/xwt/js/JS.java index 542d465..cdc7e35 100644 --- a/src/org/xwt/js/JS.java +++ b/src/org/xwt/js/JS.java @@ -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();