I created a JavaScript object that contains properties along with private and public methods. The public methods are of the form:
- Code: Select all
this.functionName = function( parameterName )
{
...do some processing...
return someValue
}
The object methods work fine, but the JSDoc (or lack thereof) is generating a warning (100's in my case) every time the object's methods are used. The warning message is:
Call to something which is not known to be a function
In Developer, when I reference the object, IntelliSense/Autocomplete shows the function as a property, not a function.
What is the best way to JSDoc annotate object functions in order to eliminate the warnings?
Thanks!