Renamed postCompile() to onCodeUpdate() as discussed on helma-dev

This commit is contained in:
hns 2004-06-29 15:15:53 +00:00
parent 61c16b9743
commit f0e9bc064a

View file

@ -262,12 +262,12 @@ public final class RhinoCore {
// If this prototype defines a postCompile() function, call it // If this prototype defines a postCompile() function, call it
Context cx = Context.getCurrentContext(); Context cx = Context.getCurrentContext();
try { try {
Object fObj = op.get("postCompile",op); Object fObj = op.get("onCodeUpdate",op);
if (fObj instanceof Function) { if (fObj instanceof Function) {
((Function) fObj).call(cx, global, op, new Object[0]); ((Function) fObj).call(cx, global, op, new Object[0]);
} }
} catch (Exception x) { } catch (Exception x) {
app.logError("Exception in "+prototype.getName()+".postCompile(): " + x, x); app.logError("Exception in "+prototype.getName()+".onCodeUpdate(): " + x, x);
} }
} }