public override object GetFunctionProperty(Context cx, int id) { if (IsPrototype()) { return base.Get(id, this); } else { Scriptable proto = GetPrototype(); if (proto is XMLObject) { return ((XMLObject)proto).GetFunctionProperty(cx, id); } } return ScriptableConstants.NOT_FOUND; }