mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
do not show the default values for enums (#689)
This commit is contained in:
parent
8c66aef685
commit
6e940d275b
@ -17,7 +17,7 @@ if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvalu
|
|||||||
|
|
||||||
<h5 class="subsection-title">Properties:</h5>
|
<h5 class="subsection-title">Properties:</h5>
|
||||||
|
|
||||||
<dl><?js= this.partial('properties.tmpl', properties) ?></dl>
|
<dl><?js= this.partial('properties.tmpl', data) ?></dl>
|
||||||
|
|
||||||
<?js } ?>
|
<?js } ?>
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?js
|
<?js
|
||||||
var props = obj;
|
var data = obj;
|
||||||
|
var props = data.subprops || data.properties;
|
||||||
|
|
||||||
/* sort subprops under their parent props (like opts.classname) */
|
/* sort subprops under their parent props (like opts.classname) */
|
||||||
var parentProp = null;
|
var parentProp = null;
|
||||||
@ -32,7 +33,7 @@
|
|||||||
props.hasName = true;
|
props.hasName = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof prop.defaultvalue !== 'undefined') {
|
if (typeof prop.defaultvalue !== 'undefined' && !data.isEnum) {
|
||||||
props.hasDefault = true;
|
props.hasDefault = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user