apm/yuidocjs — Issue #6: Writing Module Pages Fails when submodule data is missing
Author: ultralimedesign
Created: 2011-10-11 16:27:56+00:00
State: open

Since what you do is warn, that line in builder.js should probably just be prefixed with "if (i)" It would help if that warning came with a filename and line number (which I think all warnings should do if it applies).

```sh
warn: (builder): Submodule data missing: undefined for yui

/usr/local/lib/node_modules/yuidocjs/lib/builder.js:623
opts.meta.subModules.push({ name: i.name, displayN
^
TypeError: Cannot read property 'name' of undefined
at [object Object]. (/usr/local/lib/node_modules/yuidocjs/lib/builder.js:623:64)
at Array.forEach (native)
at Function. (/usr/local/lib/node_modules/yuidocjs/node_modules/yui3-core/build/yui/yui-min.js:8:5157)
at f (/usr/local/lib/node_modules/yuidocjs/node_modules/yui3-core/build/oop/oop-min.js:7:220)
at [object Object].each (/usr/local/lib/node_modules/yuidocjs/node_modules/yui3-core/build/oop/oop-min.js:7:1206)
at /usr/local/lib/node_modules/yuidocjs/lib/builder.js:621:27
at [object Object].prepare (/usr/local/lib/node_modules/yuidocjs/lib/utils.js:212:5)
at [object Object]. (/usr/local/lib/node_modules/yuidocjs/lib/builder.js:591:19)
at Function.each (/usr/local/lib/node_modules/yuidocjs/node_modules/yui3-core/build/yui/yui-min.js:9:2118)
at f (/usr/local/lib/node_modules/yuidocjs/node_modules/yui3-core/build/oop/oop-min.js:7:296)
```

P.S. Great work on all this, btw. Way better than the original python implementation in every way.