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:
@@ -82,7 +82,7 @@ exports.handlers = {
|
|||||||
if (names) {
|
if (names) {
|
||||||
for (j = 0, jj=names.length; j < jj; ++j) {
|
for (j = 0, jj=names.length; j < jj; ++j) {
|
||||||
name = names[j];
|
name = names[j];
|
||||||
if (api.indexOf(name) === -1) {
|
if (unexported.indexOf(name) === -1) {
|
||||||
unexported.push(name);
|
unexported.push(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@ exports.handlers = {
|
|||||||
for (i = 0, ii = fires.length; i < ii; ++i) {
|
for (i = 0, ii = fires.length; i < ii; ++i) {
|
||||||
event = fires[i].split(' ').pop();
|
event = fires[i].split(' ').pop();
|
||||||
name = event.replace('event:', '');
|
name = event.replace('event:', '');
|
||||||
if (api.indexOf(name) === -1) {
|
if (unexported.indexOf(name) === -1) {
|
||||||
unexported.push(name);
|
unexported.push(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user