Skip to content

Commit

Permalink
Adding inherit/extension information for #411
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Nov 25, 2015
1 parent 05c8318 commit dd3e548
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/common/documentationToHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,14 @@

// constructor
if ( baseObject.type === 'type' ) {
// Add a target for #-links if we aren't the baseName.
if ( typeName !== baseName ) {
contentHTML += '<div id="' + baseURLPrefix.slice( 0, baseURLPrefix.length - 1 ) + '"></div>';
}
var constructorLine = typeName + inlineParameterList( baseObject.comment );
if ( baseObject.supertype ) {
constructorLine += ' <span class="inherit">extends ' + typeString( baseObject.supertype ) + '</span>';
}
contentHTML += '<h4 id="' + baseURLPrefix + 'constructor" class="section">' + constructorLine + '</h4>';
contentHTML += '<p>' + toParagraphs( baseObject.comment.description ) + '</p>';
contentHTML += parameterDetailsList( baseObject.comment );
Expand Down

0 comments on commit dd3e548

Please sign in to comment.