mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(dgeni): hide private static methods Fixes driftyco/ionic-site#437
This commit is contained in:
@ -5,15 +5,20 @@ module.exports = function removePrivateMembers() {
|
|||||||
$runAfter: ['tags-parsed'],
|
$runAfter: ['tags-parsed'],
|
||||||
$runBefore: ['rendering-docs'],
|
$runBefore: ['rendering-docs'],
|
||||||
$process: function(docs) {
|
$process: function(docs) {
|
||||||
docs.forEach(function(doc){
|
docs.forEach(function(doc) {
|
||||||
if (doc.members) {
|
if (doc.members) {
|
||||||
doc.members = doc.members.filter(function(member){
|
doc.members = doc.members.filter(function(member) {
|
||||||
return !member.tags.tagsByName.get("private");
|
return !member.tags.tagsByName.get('private');
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
})
|
if (doc.statics) {
|
||||||
|
doc.statics = doc.statics.filter(function(staticMethod) {
|
||||||
|
return !staticMethod.tags.tagsByName.get('private');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return docs;
|
return docs;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user