2002/05/16 04:00:52
[org.ibex.core.git] / src / org / xwt / Template.java
index d672154..7ff09ce 100644 (file)
@@ -329,6 +329,7 @@ public class Template {
             Scriptable s = Static.getStatic(nodeName);
             if (staticscript != null) {
                 Script temp = staticscript;
+                ((InterpretedScript)temp).setParentScope(s);     // so we know how to handle Static.get("xwt")
                 staticscript = null;
                 temp.exec(Context.enter(), s);
             }