changed function name extension from _hop_action to _action
This commit is contained in:
parent
27798305ce
commit
b2ac4ac000
1 changed files with 4 additions and 3 deletions
|
@ -43,6 +43,7 @@ public class Action implements Updatable {
|
|||
this.app = proto.app;
|
||||
this.name = name;
|
||||
this.file = file;
|
||||
if (file != null)
|
||||
update ();
|
||||
}
|
||||
|
||||
|
@ -80,7 +81,7 @@ public class Action implements Updatable {
|
|||
public void update (String content) throws Exception {
|
||||
// app.logEvent ("Reading text template " + name);
|
||||
|
||||
functionName = name+"_hop_action";
|
||||
functionName = name+"_action";
|
||||
|
||||
try {
|
||||
pfunc = parseFunction (functionName, "arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10", content);
|
||||
|
@ -107,7 +108,7 @@ public class Action implements Updatable {
|
|||
try {
|
||||
RequestEvaluator reval = (RequestEvaluator) evals.next ();
|
||||
ObjectPrototype op = reval.getPrototype (prototype.getName());
|
||||
functionName = name+"_hop_action";
|
||||
functionName = name+"_action";
|
||||
ESValue esv = (ESValue) op.getProperty (functionName, functionName.hashCode());
|
||||
if (esv instanceof ConstructedFunctionObject || esv instanceof ThrowException) {
|
||||
op.deleteProperty (functionName, functionName.hashCode());
|
||||
|
|
Loading…
Add table
Reference in a new issue