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