From f0e9bc064adebfdb2fd4dc9652cc768724ab5a61 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 29 Jun 2004 15:15:53 +0000 Subject: [PATCH] Renamed postCompile() to onCodeUpdate() as discussed on helma-dev --- src/helma/scripting/rhino/RhinoCore.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helma/scripting/rhino/RhinoCore.java b/src/helma/scripting/rhino/RhinoCore.java index 8dbdebe9..81499d51 100644 --- a/src/helma/scripting/rhino/RhinoCore.java +++ b/src/helma/scripting/rhino/RhinoCore.java @@ -262,12 +262,12 @@ public final class RhinoCore { // If this prototype defines a postCompile() function, call it Context cx = Context.getCurrentContext(); try { - Object fObj = op.get("postCompile",op); - if (fObj instanceof Function) { + Object fObj = op.get("onCodeUpdate",op); + if (fObj instanceof Function) { ((Function) fObj).call(cx, global, op, new Object[0]); } } catch (Exception x) { - app.logError("Exception in "+prototype.getName()+".postCompile(): " + x, x); + app.logError("Exception in "+prototype.getName()+".onCodeUpdate(): " + x, x); } }