Do not query the array twice
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user