Skip to content

Commit

Permalink
fix: hide private members
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-krysiak committed Aug 31, 2020
1 parent 369c76b commit 8e680a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tmpl/container.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@
// symbols that are assigned to module.exports are not globals, even though they're not a memberof anything
if (isGlobalPage && members && members.length && members.forEach) {
members = members.filter(function(m) {
return m.longname && m.longname.indexOf('module:') !== 0;
return m.longname
&& m.longname.indexOf('module:') !== 0
&& m.access !== 'private';
});
}
if (members && members.length && members.forEach) {
Expand All @@ -192,6 +194,9 @@
<?js
var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
if (methods && methods.length && methods.forEach) {
methods = methods.filter(function(m) {
return m.access !== 'private';
});
?>
<div class='vertical-section'>
<h1>Methods</h1>
Expand Down

0 comments on commit 8e680a3

Please sign in to comment.