X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2FTemplate.java;h=2ef5e1b2e131dd88dde1f16460b99eac52ff0a5d;hb=8908552c1a2ae233c95d0ed59ee6cfa9c4a91440;hp=154de72b70027cf17158b285ad00c272f37310c6;hpb=4abd3e305d0b87f37d5969016b86ba53574a3210;p=org.ibex.core.git diff --git a/src/org/ibex/Template.java b/src/org/ibex/Template.java index 154de72..2ef5e1b 100644 --- a/src/org/ibex/Template.java +++ b/src/org/ibex/Template.java @@ -32,6 +32,7 @@ public class Template { private Vec children = new Vec(); ///< during XML parsing, this holds the list of currently-parsed children; null otherwise private JS script = null; ///< the script on this node Template prev; + Template prev2; JSScope staticScope = null; ///< the scope in which the static block is executed @@ -75,12 +76,14 @@ public class Template { private void apply(Box b, PerInstantiationScope parentPis) throws JSExn, IOException { if (prev != null) prev.apply(b, null); + if (prev2 != null) prev2.apply(b, null); // FIXME this dollar stuff is all wrong if (id != null) parentPis.putDollar(id, b); PerInstantiationScope pis = new PerInstantiationScope(b, ibex, parentPis, staticScope); for(int i=0; i 0 && val.charAt(0) == '.') val = val.substring(1); t.urivals[ii] = val;