mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
don't show "type" section if there are no types to display (#195)
This commit is contained in:
parent
c890b0cf79
commit
add0b09638
@ -4,13 +4,13 @@
|
||||
</div>
|
||||
<?js } ?>
|
||||
|
||||
<?js if (data.type) {?>
|
||||
<?js if (data.type && data.type.names) {?>
|
||||
<dl>
|
||||
<dt>
|
||||
Type
|
||||
</dt>
|
||||
<dd>
|
||||
<?js= self.partial('type.tmpl', data.type) ?>
|
||||
<?js= self.partial('type.tmpl', data.type.names) ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?js } ?>
|
||||
@ -14,11 +14,11 @@
|
||||
</div>
|
||||
<?js } ?>
|
||||
|
||||
<?js if (kind === 'event' && data.type) {?>
|
||||
<?js if (kind === 'event' && data.type && data.type.names) {?>
|
||||
<h5>Type:</h5>
|
||||
<ul>
|
||||
<li>
|
||||
<?js= self.partial('type.tmpl', data.type) ?>
|
||||
<?js= self.partial('type.tmpl', data.type.names) ?>
|
||||
</li>
|
||||
</ul>
|
||||
<?js } ?>
|
||||
|
||||
@ -72,8 +72,8 @@
|
||||
<?js } ?>
|
||||
|
||||
<td class="type">
|
||||
<?js if (param.type) {?>
|
||||
<?js= self.partial('type.tmpl', param.type) ?>
|
||||
<?js if (param.type && param.type.names) {?>
|
||||
<?js= self.partial('type.tmpl', param.type.names) ?>
|
||||
<?js } ?>
|
||||
</td>
|
||||
|
||||
|
||||
@ -72,8 +72,8 @@
|
||||
<?js } ?>
|
||||
|
||||
<td class="type">
|
||||
<?js if (prop.type) {?>
|
||||
<?js= self.partial('type.tmpl', prop.type) ?>
|
||||
<?js if (prop.type && prop.type.names) {?>
|
||||
<?js= self.partial('type.tmpl', prop.type.names) ?>
|
||||
<?js } ?>
|
||||
</td>
|
||||
|
||||
|
||||
@ -4,13 +4,13 @@
|
||||
</div>
|
||||
<?js } ?>
|
||||
|
||||
<?js if (data.type) {?>
|
||||
<?js if (data.type && data.type.names) {?>
|
||||
<dl>
|
||||
<dt>
|
||||
Type
|
||||
</dt>
|
||||
<dd>
|
||||
<?js= this.partial('type.tmpl', data.type) ?>
|
||||
<?js= this.partial('type.tmpl', data.type.names) ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?js } ?>
|
||||
@ -1,9 +1,6 @@
|
||||
<?js if (data.names) { ?>
|
||||
<?js
|
||||
var names = data.names,
|
||||
self = this;
|
||||
names.forEach(function(name, i) { ?>
|
||||
<span class="param-type"><?js= self.linkto(name, self.htmlsafe(name)) ?></span>
|
||||
<?js if (i < names.length-1) { ?>|<?js } ?>
|
||||
<?js }); ?>
|
||||
<?js } ?>
|
||||
<?js
|
||||
var self = this;
|
||||
data.forEach(function(name, i) { ?>
|
||||
<span class="param-type"><?js= self.linkto(name, self.htmlsafe(name)) ?></span>
|
||||
<?js if (i < data.length-1) { ?>|<?js } ?>
|
||||
<?js }); ?>
|
||||
Loading…
x
Reference in New Issue
Block a user