Do not query the array twice

This commit is contained in:
ahocevar
2014-03-26 23:46:42 +01:00
parent 46ec3209bd
commit cc1fceab05
+1 -1
View File
@@ -119,8 +119,8 @@ exports.handlers = {
} }
var fqn = doclet.longname; var fqn = doclet.longname;
if (fqn) { if (fqn) {
var undocumented = (api.indexOf(fqn) === -1 && unexported.indexOf(fqn) === -1);
doclet.unexported = (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 // Remove parents that are not part of the API
var parent; var parent;
var parents = doclet.augments; var parents = doclet.augments;