fixed bug where no constructor was created for prototypes that where created after the application has started
This commit is contained in:
parent
9310c6a09b
commit
697f3a110c
1 changed files with 13 additions and 0 deletions
|
@ -194,6 +194,19 @@ public class TypeManager implements Runnable {
|
|||
proto.templates = ntemp;
|
||||
proto.functions = nfunc;
|
||||
proto.actions = nact;
|
||||
|
||||
// register constructor for evaluators that are already initialized.
|
||||
if (!"global".equalsIgnoreCase (name)) {
|
||||
Iterator evals = getRegisteredRequestEvaluators ();
|
||||
while (evals.hasNext ()) {
|
||||
try {
|
||||
RequestEvaluator reval = (RequestEvaluator) evals.next ();
|
||||
FunctionPrototype fp = (FunctionPrototype) reval.evaluator.getFunctionPrototype();
|
||||
reval.global.putHiddenProperty (name, new NodeConstructor (name, fp, reval));
|
||||
} catch (Exception ignore) {}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue