Skip to content

Commit 9fa71d9

Browse files
committed
Prevented empty files from being listed.
1 parent cddd828 commit 9fa71d9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/doxdox.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,16 @@ exports.parseScripts = function (scripts, config, pkg) {
6060

6161
scripts.forEach(function (script) {
6262

63-
var methods = dox.parseComments(script.contents, { raw: true });
63+
var methods = utils.parseData(
64+
dox.parseComments(script.contents, { raw: true }),
65+
script.name
66+
);
6467

65-
if (methods) {
68+
if (methods.length) {
6669

6770
files.push({
6871
name: script.name,
69-
methods: utils.parseData(methods, script.name)
72+
methods: methods
7073
});
7174

7275
}

0 commit comments

Comments
 (0)