From 842ac27ba449a8aa171aba80a938c4cc114f4348 Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 10 Mar 2004 05:33:29 +0000 Subject: [PATCH] corrected behavior of statics darcs-hash:20040310053329-5007d-db883cafb7a4fb58b1bb0f8f3dab33262332d004.gz --- src/org/ibex/Template.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/org/ibex/Template.java b/src/org/ibex/Template.java index 0461dbc..fb9f4cc 100644 --- a/src/org/ibex/Template.java +++ b/src/org/ibex/Template.java @@ -34,6 +34,7 @@ public class Template { Template prev; Template prev2; JSScope staticScope = null; ///< the scope in which the static block is executed + JS staticObject = null; // Only used during parsing ///////////////////////////////////////////////////////////////// @@ -81,7 +82,7 @@ public class Template { // FIXME this dollar stuff is all wrong if (id != null) parentPis.putDollar(id, b); - PerInstantiationScope pis = new PerInstantiationScope(b, ibex, parentPis, staticScope); + PerInstantiationScope pis = new PerInstantiationScope(b, ibex, parentPis, staticObject); for(int i=0; i