diff --git a/src/helma/scripting/rhino/HopObject.java b/src/helma/scripting/rhino/HopObject.java index aaa716d0..fd356c7b 100644 --- a/src/helma/scripting/rhino/HopObject.java +++ b/src/helma/scripting/rhino/HopObject.java @@ -304,7 +304,10 @@ public class HopObject extends ScriptableObject implements Wrapper { n = getFromNode(id.toString()); // then try to get child object by id if (n == null || n == NOT_FOUND) { - n = jsFunction_getById(id); + n = node.getChildElement(id.toString()); + if (n != null) { + n = Context.toObject(n, core.global); + } } }