Export to GitHub

jsdoc-toolkit - issue #350

uninitialized field documnetation not shown in output


Posted on Oct 5, 2014 by Helpful Panda

First, thanks for your efforts. Excellent package.

Here is my question. Is it normal behavior not to pick a field var that has not been assigned a value? (kept "undefined")

Here is my case:

function Graph() { /**#@+ * @description Property field - */

    /** number of vertices */
this.nv;

... <cut>

this.nv does not show in the field listing under the Graph class, unless I assign it a value. If I initialize it to something, say 0 (sensible in this case), it documented as expected. So there is a work-around, but is this by design?

Best regards

Status: New