* Reintroduce HopObject.getById(), which was accidentally thrown out with installConstructor().
This commit is contained in:
parent
0d0b99f4c0
commit
ea2d716210
1 changed files with 2 additions and 0 deletions
|
@ -220,6 +220,8 @@ public final class RhinoCore implements ScopeProvider {
|
|||
try {
|
||||
FunctionObject fo = new FunctionObject(name, HopObject.hopObjCtor, global);
|
||||
fo.addAsConstructor(global, op);
|
||||
// add static getById() function
|
||||
fo.defineProperty("getById", new GetById(name), GetById.ATTRIBUTES);
|
||||
} catch (Exception ignore) {
|
||||
System.err.println("Error adding ctor for " + name + ": " + ignore);
|
||||
ignore.printStackTrace();
|
||||
|
|
Loading…
Add table
Reference in a new issue