changed function name extension from _hop_action to _action

This commit is contained in:
hns 2001-05-14 14:40:33 +00:00
parent 27798305ce
commit b2ac4ac000

View file

@ -43,6 +43,7 @@ public class Action implements Updatable {
this.app = proto.app; this.app = proto.app;
this.name = name; this.name = name;
this.file = file; this.file = file;
if (file != null)
update (); update ();
} }
@ -80,7 +81,7 @@ public class Action implements Updatable {
public void update (String content) throws Exception { public void update (String content) throws Exception {
// app.logEvent ("Reading text template " + name); // app.logEvent ("Reading text template " + name);
functionName = name+"_hop_action"; functionName = name+"_action";
try { try {
pfunc = parseFunction (functionName, "arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10", content); pfunc = parseFunction (functionName, "arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10", content);
@ -107,7 +108,7 @@ public class Action implements Updatable {
try { try {
RequestEvaluator reval = (RequestEvaluator) evals.next (); RequestEvaluator reval = (RequestEvaluator) evals.next ();
ObjectPrototype op = reval.getPrototype (prototype.getName()); ObjectPrototype op = reval.getPrototype (prototype.getName());
functionName = name+"_hop_action"; functionName = name+"_action";
ESValue esv = (ESValue) op.getProperty (functionName, functionName.hashCode()); ESValue esv = (ESValue) op.getProperty (functionName, functionName.hashCode());
if (esv instanceof ConstructedFunctionObject || esv instanceof ThrowException) { if (esv instanceof ConstructedFunctionObject || esv instanceof ThrowException) {
op.deleteProperty (functionName, functionName.hashCode()); op.deleteProperty (functionName, functionName.hashCode());