mryozo16 / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

incorrect .isPrivate detection for underscored items #184

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In Parser.js, line 37:

if (!symbol.comment.getTag("public")) symbol.isPrivate = true;

This is never satisfied, because getTag() returns an array (which is
"true", even if empty).

Correct line should be:

if (!symbol.comment.getTag("public").length) symbol.isPrivate = true;

Original issue reported on code.google.com by ondrej.zara on 21 Nov 2008 at 2:00

GoogleCodeExporter commented 8 years ago
Committed revision 738.

Thanks!

Original comment by micmath on 21 Nov 2008 at 3:01