* Reintroduce HopObject.getById(), which was accidentally thrown out with installConstructor().

This commit is contained in:
hns 2005-09-22 09:14:20 +00:00
parent 0d0b99f4c0
commit ea2d716210

View file

@ -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();