Skip to content

Commit

Permalink
Handle private-docs param for all docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion committed Mar 16, 2017
1 parent 4470b7d commit 8d76e2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/dgeni/processors/docs-private-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ module.exports = function docsPrivateFilter() {
};

function validateDocEntry(doc) {
if (doc.docType === 'member') {
if (hasDocsPrivateTag(doc)) {
return false;
} else if (doc.docType === 'member') {
return validateMemberDoc(doc);
} else if (doc.docType === 'class') {
doc.members = doc.members.filter(memberDoc => validateMemberDoc(memberDoc));
Expand All @@ -44,7 +46,7 @@ function validateDocEntry(doc) {
}

function validateMemberDoc(memberDoc) {
return !(hasDocsPrivateTag(memberDoc) || INTERNAL_METHODS.includes(memberDoc.name))
return !INTERNAL_METHODS.includes(memberDoc.name)
}

function hasDocsPrivateTag(doc) {
Expand Down

0 comments on commit 8d76e2b

Please sign in to comment.