X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FTemplate.java;h=7ff09ce1033ab932484760c98a4b9804303c8f76;hb=fea7f27cc252c8feaafb8a5c0d4b9f391f03975d;hp=d6721545235f04bbf98683c10f5da23ca719b056;hpb=3cef8349390961b96c434ec063638d3c18057ea5;p=org.ibex.core.git diff --git a/src/org/xwt/Template.java b/src/org/xwt/Template.java index d672154..7ff09ce 100644 --- a/src/org/xwt/Template.java +++ b/src/org/xwt/Template.java @@ -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); }