Merge branch 'master' of github.com:micmath/jsdoc

This commit is contained in:
Michael Mathews 2011-08-04 11:52:26 +01:00
commit 55a2b97df6

View File

@ -242,7 +242,7 @@
nav = nav + '<h3>Classes</h3><ul>';
classNames.forEach(function(c) {
var moduleSameName = data.get( data.find({kind: 'module', longname: c.longname}) );
if (moduleSameName) {
if (moduleSameName.length) {
c.name = c.name.replace('module:', 'require(')+')';
moduleSameName[0].module = c;
}