Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Visual Studio JavaScript IntelliSense - Work in Object Oriented model

$
0
0

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?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>