compile _as_string variants for legacy templates (.hsp)

This commit is contained in:
hns 2003-09-30 10:45:00 +00:00
parent 186f7d37d7
commit 3a12fe94ef

View file

@ -693,6 +693,11 @@ public final class RhinoCore {
try {
updateEvaluator(prototype, info, new StringReader(fa.function),
action.getSourceName(), 0);
if (fa.functionAsString != null) {
// templates have an _as_string variant that needs to be compiled
updateEvaluator(prototype, info, new StringReader(fa.functionAsString),
action.getSourceName(), 0);
}
} catch (Exception esx) {
app.logEvent("Error parsing " + action + ": " + esx);
}