twobob / jsdoc-toolkit

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

Default value of DocTag.defaultValue is empty string #301

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In the latest beta, the default value of JSDOC.DocTag.defaultValue is ""
This prevents the template from being able to determine the difference between 
the user specifying an empty string as the default value, and the user not 
specifying a default value at all.

If the default value is "undefined" it is possible to handle this case in the 
template engine with a "if(defined(tag.defaultValue))"

Original issue reported on code.google.com by jordan.c...@gmail.com on 30 Sep 2010 at 12:15