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:
@ -8,12 +8,17 @@ module.exports = function removePrivateMembers() {
|
|||||||
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