Call getChildElement() instead of getSubnode() as fallback in getProperty().

Fixed bug 155.
This commit is contained in:
hns 2002-11-22 14:41:39 +00:00
parent 4babc5c850
commit 0ce0f3f0eb

View file

@ -418,7 +418,7 @@ public class ESNode extends ObjectPrototype {
} }
// as last resort, try to get property as anonymous subnode // as last resort, try to get property as anonymous subnode
INode anon = node.getSubnode (propertyName); INode anon = (INode) node.getChildElement (propertyName);
if (anon != null) if (anon != null)
return engine.getNodeWrapper (anon); return engine.getNodeWrapper (anon);