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.
This commit is contained in:
ahocevar
2014-03-26 18:32:36 +01:00
parent 118d9c200a
commit f129a68248

View File

@@ -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);
}
}