Given an oversimplified model of my object-oriented hierarchy:
varBaseObj=function(field){this.field = field;};varDescendentObject=function(field, field2){this.BaseObj(field);this.field2 = field2;
//in this simple model, it is aware it is the prototype
//but sometimes that breaks too!
};BaseObj.prototype ={///<field name="field" type="String">I am well documented</field>
field :""};DescendentObject.prototype ={///<field name="field" type="String">I am well documented</field>
field2 :""};//this simplies our actual inheritance model but effectively does the same thingDescendentObject.prototype.BaseObj=BaseObj;DescendentObject.prototype.field =BaseObj.prototype.field;var x =newDescendentObject();
x.field2 //I am well documented
x.field //editor knows I exist, but I am completely undocumented!
Is there any way to get that nice documentation for field in BaseObj into the field in DescendentObject without needing to explicitly list each field in both objects?