diff options
author | isaacs <i@izs.me> | 2012-02-27 11:44:36 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-02-27 11:44:36 -0800 |
commit | 7af2d6b985192c17b68b7b1c4952df452d0e6f84 (patch) | |
tree | fa33c63abecd7bc5105562c8d4f4ccdd90a6abe2 /tools | |
parent | 909ea3008ef3606def315807f334d028fa6afacd (diff) | |
download | node-new-7af2d6b985192c17b68b7b1c4952df452d0e6f84.tar.gz |
Handle miscs better
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/json.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/doc/json.js b/tools/doc/json.js index e4c5d76c46..4138fbad30 100644 --- a/tools/doc/json.js +++ b/tools/doc/json.js @@ -368,6 +368,9 @@ function finishSection(section, parent) { if (!section.type) { section.type = 'module'; + if (parent && (parent.type === 'misc')) { + section.type = 'misc'; + } section.displayName = section.name; section.name = section.name.toLowerCase() .trim().replace(/\s+/g, '_'); @@ -439,6 +442,9 @@ function finishSection(section, parent) { case 'miscs': return; default: + if (parent.type === 'misc') { + return; + } if (Array.isArray(k) && parent[k]) { parent[k] = parent[k].concat(section[k]); } else if (!parent[k]) { |