jsdoc: when no default value is given, just put optional.

This commit is contained in:
Jonathan Puckey 2011-05-28 02:27:56 +02:00
parent cd76c8c0e1
commit 70a3300927

View file

@ -5,7 +5,7 @@
<tt>{+ parameter.name +}: </tt>
{+ new Link().toSymbol(parameter.type) +}
<if test="parameter.desc">&mdash;&nbsp;{+processInlineTags(parameter.desc, {stripParagraphs: true})+}</if>
<if test="parameter.defaultValue">&mdash;&nbsp;optional, default: <tt>{+parameter.defaultValue+}</tt></if>
<if test="parameter.isOptional">&mdash;&nbsp;optional</if><if test="parameter.defaultValue">, default: <tt>{+parameter.defaultValue+}</tt></if>
</li>
</for>
</ul>