}
public JSScope getStatic() {
try {
- if (t == null) t = Template.buildTemplate(parentkey + ".t", parent.get(parentkey + ".t"), ibex);
+ if (t == null) {
+ JS res = (JS) parent.get(parentkey + ".t");
+ t = Template.buildTemplate(res.unclone().toString(), res, ibex);
+ }
return t.staticScope;
} catch (Exception e) {
Log.error(this, e);