diff --git a/build/jsdoc-toolkit/templates/jsdoc/class.tmpl b/build/jsdoc-toolkit/templates/jsdoc/class.tmpl index 735c2078..b3bc4350 100644 --- a/build/jsdoc-toolkit/templates/jsdoc/class.tmpl +++ b/build/jsdoc-toolkit/templates/jsdoc/class.tmpl @@ -15,6 +15,31 @@ operators[name].push(operator); } } + + var inheritedProperties = data.properties.filter(function($) {return $.memberOf != data.alias}); + var inheritedMethods = data.methods.filter(function($) {return $.memberOf != data.alias}); + var inheritedClasses = {}; + var inheritedClassLinks = []; + inheritedProperties.concat(inheritedMethods).map(function($) { + if (!inheritedClasses[$.memberOf]) { + inheritedClassLinks.push(new Link().toSymbol($.memberOf)); + inheritedClasses[$.memberOf] = { + className: $.memberOf, + properties: [], + methods: [] + }; + } + }); + + for (var i = 0, l = inheritedProperties.length; i < l; i++) { + var symbol = inheritedProperties[i]; + inheritedClasses[symbol.memberOf].properties.push(symbol); + } + + for (var i = 0, l = inheritedMethods.length; i < l; i++) { + var symbol = inheritedMethods[i]; + inheritedClasses[symbol.memberOf].methods.push(symbol); + } !} @@ -31,6 +56,9 @@
Extends {+ inheritedClassLinks.join(', ') +}
+{+processInlineTags(data.classDesc)+}