Allow onCodeUpdate function to be defined in prototype chain.
This commit is contained in:
parent
7ac392b088
commit
f8d3f0e25d
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ public final class RhinoCore {
|
|||
// If this prototype defines a postCompile() function, call it
|
||||
Context cx = Context.getCurrentContext();
|
||||
try {
|
||||
Object fObj = op.get("onCodeUpdate",op);
|
||||
Object fObj = ScriptableObject.getProperty(op, "onCodeUpdate");
|
||||
if (fObj instanceof Function) {
|
||||
((Function) fObj).call(cx, global, op, new Object[0]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue