Fix @hideconstructor JSDoc tag hiding classes' properties

This commit is contained in:
David Rowe 2019-12-23 14:12:50 +13:00
parent bdce8134fc
commit f7336d9141
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@
<?js doc.modules.forEach(function(module) { ?> <?js doc.modules.forEach(function(module) { ?>
<?js= self.partial('methodList.tmpl', module) ?> <?js= self.partial('methodList.tmpl', module) ?>
<?js }) ?> <?js }) ?>
<?js } else if (doc.kind === 'class' || (doc.kind === 'namespace' && doc.signature)) { ?> <?js } else if ((doc.kind === 'class' && !doc.hideconstructor) || (doc.kind === 'namespace' && doc.signature)) { ?>
<h3>Description</h3> <h3>Description</h3>
<div><?js= doc.description ?></div> <div><?js= doc.description ?></div>
<?js= self.partial('details.tmpl', doc) ?> <?js= self.partial('details.tmpl', doc) ?>

View file

@ -19,7 +19,7 @@ if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvalu
<?js <?js
var properties = data.properties; var properties = data.properties;
if (properties && properties.length && properties.forEach && !data.hideconstructor) { if (properties && properties.length && properties.forEach) {
?> ?>
<h3 class="propsHeading" id="props">Properties</h3> <h3 class="propsHeading" id="props">Properties</h3>