From f129a6824839d92bf0a2d2f083c09919e5cc8117 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 26 Mar 2014 18:32:36 +0100 Subject: [PATCH] Only add symbols to the unexported array once This basically fixes a typo that caused unexported symbols to be added to the unexported array multiple times. --- apidoc/plugins/exports.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apidoc/plugins/exports.js b/apidoc/plugins/exports.js index 717985b132..8866dd7cd5 100644 --- a/apidoc/plugins/exports.js +++ b/apidoc/plugins/exports.js @@ -82,7 +82,7 @@ exports.handlers = { if (names) { for (j = 0, jj=names.length; j < jj; ++j) { name = names[j]; - if (api.indexOf(name) === -1) { + if (unexported.indexOf(name) === -1) { unexported.push(name); } } @@ -95,7 +95,7 @@ exports.handlers = { for (i = 0, ii = fires.length; i < ii; ++i) { event = fires[i].split(' ').pop(); name = event.replace('event:', ''); - if (api.indexOf(name) === -1) { + if (unexported.indexOf(name) === -1) { unexported.push(name); } }