Do not query the array twice

This commit is contained in:
ahocevar
2014-03-26 23:46:42 +01:00
parent 46ec3209bd
commit cc1fceab05

View File

@@ -119,8 +119,8 @@ exports.handlers = {
}
var fqn = doclet.longname;
if (fqn) {
var undocumented = (api.indexOf(fqn) === -1 && unexported.indexOf(fqn) === -1);
doclet.unexported = (unexported.indexOf(fqn) !== -1);
var undocumented = (api.indexOf(fqn) === -1 && !doclet.unexported);
// Remove parents that are not part of the API
var parent;
var parents = doclet.augments;