Use getChildElement() rather than getSubnode() to get a child in HopObject.get() -
otherwise, child objects are always accessible via id, even if accessname is specified.
This commit is contained in:
parent
04fd6b05fe
commit
9d6bd72355
1 changed files with 4 additions and 1 deletions
|
@ -304,7 +304,10 @@ public class HopObject extends ScriptableObject implements Wrapper {
|
||||||
n = getFromNode(id.toString());
|
n = getFromNode(id.toString());
|
||||||
// then try to get child object by id
|
// then try to get child object by id
|
||||||
if (n == null || n == NOT_FOUND) {
|
if (n == null || n == NOT_FOUND) {
|
||||||
n = jsFunction_getById(id);
|
n = node.getChildElement(id.toString());
|
||||||
|
if (n != null) {
|
||||||
|
n = Context.toObject(n, core.global);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue