Fixes for intrapage link rendering.

This commit is contained in:
Michael Mathews 2011-02-26 12:18:05 +00:00
parent 15268b3ce0
commit af8295aff4
2 changed files with 3 additions and 3 deletions

View File

@ -162,10 +162,10 @@
longnameToUrl = {};
data.forEach(function(doclet) {
if (~containers.indexOf(doclet.kind)) {
if (doclet.memberof && containers.indexOf(doclet.kind) < 0) {
var longname = doclet.longname,
urlSafe = doclet.memberof.replace(/[^$a-z0-9._-]/gi, '_'), // TODO handle name collisions
url = urlSafe + '.html#'doclet.name;
url = urlSafe + '.html#'+doclet.name;
}
else {
var longname = doclet.longname,

View File

@ -1,6 +1,6 @@
<dt id="<?js= longname ?>">
<h4 class="name"><?js= this.attribs + (kind == 'class'? 'new ':'') + name + this.signature ?></h4>
<h4 class="name" id="<?js= name ?>"><?js= this.attribs + (kind == 'class'? 'new ':'') + name + this.signature ?></h4>
<?js if (this.summary) { ?>
<p class="summary"><?js= summary ?></p>