If I create a JS object like this:
Code: Select all
/**
* Creates a formstate object
* @constructor
* @public sessionID
*
*/
function FormState()
{
this.sessionID = 'test';
}Code: Select all
var test = new FormState();
fields.TEST.value = test.sessionID;So, the editor knows that test is an object of type 'FormState'.test: FormState
But when I use ctrl+space on 'test.' the code completion doesn't show that there is a valid property 'sessionID'.
Is there a way (with JavaDoc notation?) to make this work?
It would be especially handy when using objects from other scripts of which the properties are 'unknown' to the developer using the object.
Thanks,
David
