docs(barcodeScanner): hide private methods

This commit is contained in:
mhartington
2016-07-05 14:52:21 -04:00
parent f2f3741819
commit ef960c8aec
2 changed files with 14 additions and 6 deletions
@@ -5,15 +5,20 @@ module.exports = function removePrivateMembers() {
$runAfter: ['tags-parsed'],
$runBefore: ['rendering-docs'],
$process: function(docs) {
docs.forEach(function(doc){
docs.forEach(function(doc) {
if (doc.members) {
doc.members = doc.members.filter(function(member){
return !member.tags.tagsByName.get("private");
})
doc.members = doc.members.filter(function(member) {
return !member.tags.tagsByName.get('private');
});
}
})
if (doc.statics) {
doc.statics = doc.statics.filter(function(staticMethod) {
return !staticMethod.tags.tagsByName.get('private');
});
}
});
return docs;
}
}
};
};