X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FTemplate.java;h=1b2d9b69922b8b2e1feab379fad8bbecd68f359f;hb=6a96430e10e27fc1de5754cb5add705f929dd109;hp=209ae25ec5fbdb1b9a9dc6108d14a0a43b4c6143;hpb=6b010667b40641fdb82925e56466f847f721ef1f;p=org.ibex.core.git diff --git a/src/org/xwt/Template.java b/src/org/xwt/Template.java index 209ae25..1b2d9b6 100644 --- a/src/org/xwt/Template.java +++ b/src/org/xwt/Template.java @@ -97,7 +97,7 @@ public class Template { if (staticscript == null) return staticScope; JS.CompiledFunction temp = staticscript; staticscript = null; - temp.call(new JS.Array(), staticScope); + new JS.Thread(temp, staticScope).resume(); return staticScope; } @@ -117,19 +117,19 @@ public class Template { t.apply(b, callback, xwt); } - PerInstantiationScope pis = new PerInstantiationScope(b, xwt, parentPis); + PerInstantiationScope pis = new PerInstantiationScope(b, xwt, parentPis, staticScope); for (int i=0; children != null && i