Merge pull request #16068 from ctrlaltdavid/DOC-95

DOC-95: Fix callback functions' display in JSDoc
This commit is contained in:
Shannon Romano 2019-08-19 15:43:48 -07:00 committed by GitHub
commit c73dab1051
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -239,7 +239,7 @@
<?js typedefs.forEach(function(e) {
if (e.signature) {
?>
<?js= self.partial('members.tmpl', e) ?>
<?js= self.partial('method.tmpl', e) ?>
<?js
}
else {

View file

@ -13,7 +13,10 @@ var self = this;
<?js returns.forEach(function(r) { ?>
<?js= self.partial('returns.tmpl', r) ?>
<?js });
} ?></span>
} ?></span>
<?js if (data.kind === 'typedef' && data.type && data.type.names) { ?>
<br />Type: <?js= self.partial('type.tmpl', data.type.names) ?>
<?js } ?>
</th>
</tr>
</thead>
@ -63,7 +66,7 @@ var self = this;
<?js= self.partial('augments.tmpl', data) ?>
<?js } ?>
<?js if (kind === 'event' && data.type && data.type.names) {?>
<?js if (data.kind === 'event' && data.type && data.type.names) {?>
<h5>Type:</h5>
<ul>
<li>