X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FTemplate.java;h=1b2d9b69922b8b2e1feab379fad8bbecd68f359f;hb=6a96430e10e27fc1de5754cb5add705f929dd109;hp=e7e72b5b5e88a3a6f9c473b3ba4f1cc8ed61247e;hpb=16ea48d834626fb9815da2f7632c3633838fb790;p=org.ibex.core.git diff --git a/src/org/xwt/Template.java b/src/org/xwt/Template.java index e7e72b5..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; } @@ -124,7 +124,7 @@ public class Template { b.put(b.numChildren(), kid); } - if (script != null) script.call(new JS.Array(), pis); + if (script != null) new JS.Thread(script, pis).resume(); for(int i=0; keys != null && i