Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 81bc9fe

Browse files
petebacondarwinwardbell
authored andcommitted
Fix display of heritage (#2792)
* style(matchUpDirectiveDecorators): fix linting errors * fix(doc-gen/templates): ensure heritage is displayed
1 parent 6fd0a14 commit 81bc9fe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tools/api-builder/angular.io-package/processors/matchUpDirectiveDecorators.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var _ = require('lodash');
55
* @description
66
*
77
*/
8-
module.exports = function matchUpDirectiveDecoratorsProcessor(aliasMap) {
8+
module.exports = function matchUpDirectiveDecoratorsProcessor() {
99

1010
return {
1111
$runAfter: ['ids-computed', 'paths-computed'],
@@ -20,7 +20,7 @@ module.exports = function matchUpDirectiveDecoratorsProcessor(aliasMap) {
2020
if (doc.docType === 'directive') {
2121
doc.selector = doc.directiveOptions.selector;
2222

23-
for(decoratorName in decoratorMappings) {
23+
for(var decoratorName in decoratorMappings) {
2424
var propertyName = decoratorMappings[decoratorName];
2525
doc[propertyName] = getDecoratorValues(doc.directiveOptions[propertyName], decoratorName, doc.members);
2626
}
@@ -31,7 +31,7 @@ module.exports = function matchUpDirectiveDecoratorsProcessor(aliasMap) {
3131
};
3232

3333
function getDecoratorValues(classDecoratorValues, memberDecoratorName, members) {
34-
var optionMap = {};
34+
3535
var decoratorValues = {};
3636

3737
// Parse the class decorator

tools/api-builder/angular.io-package/templates/class.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
div(flex="20" flex-xs="100")
1818
h2(class="h2-api-docs") Class Overview
1919
div(flex="80" flex-xs="100")
20-
code(class="no-bg api-doc-code openParens") class {$ doc.name $} {
20+
code(class="no-bg api-doc-code openParens") class {$ doc.name $}{$ doc.heritage $} {
2121

2222
{% if doc.statics.length %}
2323
div(layout="column")

tools/api-builder/angular.io-package/templates/interface.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
div(flex="20" flex-xs="100")
1818
h2(class="h2-api-docs") Interface Overview
1919
div(flex="80" flex-xs="100")
20-
code(class="no-bg api-doc-code openParens") interface {$ doc.name $} {
20+
code(class="no-bg api-doc-code openParens") interface {$ doc.name $}{$ doc.heritage $} {
2121

2222
{% if doc.members.length %}
2323
div(layout="column")

0 commit comments

Comments
 (0)