From cc1fceab05bc0f82263d36a315cc840f94ab18b8 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 26 Mar 2014 23:46:42 +0100 Subject: [PATCH] Do not query the array twice --- apidoc/plugins/exports.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apidoc/plugins/exports.js b/apidoc/plugins/exports.js index 7e71d3b567..6f268734bf 100644 --- a/apidoc/plugins/exports.js +++ b/apidoc/plugins/exports.js @@ -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;