From 81bc9feca6c4d5dacc6c6f485305cacf587282d0 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Wed, 14 Dec 2016 19:17:37 +0000 Subject: [PATCH] Fix display of heritage (#2792) * style(matchUpDirectiveDecorators): fix linting errors * fix(doc-gen/templates): ensure heritage is displayed --- .../processors/matchUpDirectiveDecorators.js | 6 +++--- .../angular.io-package/templates/class.template.html | 2 +- .../angular.io-package/templates/interface.template.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/api-builder/angular.io-package/processors/matchUpDirectiveDecorators.js b/tools/api-builder/angular.io-package/processors/matchUpDirectiveDecorators.js index a5d2876142..e927a22699 100644 --- a/tools/api-builder/angular.io-package/processors/matchUpDirectiveDecorators.js +++ b/tools/api-builder/angular.io-package/processors/matchUpDirectiveDecorators.js @@ -5,7 +5,7 @@ var _ = require('lodash'); * @description * */ -module.exports = function matchUpDirectiveDecoratorsProcessor(aliasMap) { +module.exports = function matchUpDirectiveDecoratorsProcessor() { return { $runAfter: ['ids-computed', 'paths-computed'], @@ -20,7 +20,7 @@ module.exports = function matchUpDirectiveDecoratorsProcessor(aliasMap) { if (doc.docType === 'directive') { doc.selector = doc.directiveOptions.selector; - for(decoratorName in decoratorMappings) { + for(var decoratorName in decoratorMappings) { var propertyName = decoratorMappings[decoratorName]; doc[propertyName] = getDecoratorValues(doc.directiveOptions[propertyName], decoratorName, doc.members); } @@ -31,7 +31,7 @@ module.exports = function matchUpDirectiveDecoratorsProcessor(aliasMap) { }; function getDecoratorValues(classDecoratorValues, memberDecoratorName, members) { - var optionMap = {}; + var decoratorValues = {}; // Parse the class decorator diff --git a/tools/api-builder/angular.io-package/templates/class.template.html b/tools/api-builder/angular.io-package/templates/class.template.html index 5320115240..7dff4df7b2 100644 --- a/tools/api-builder/angular.io-package/templates/class.template.html +++ b/tools/api-builder/angular.io-package/templates/class.template.html @@ -17,7 +17,7 @@ div(layout="row" layout-xs="column" class="ng-cloak") div(flex="20" flex-xs="100") h2(class="h2-api-docs") Class Overview div(flex="80" flex-xs="100") - code(class="no-bg api-doc-code openParens") class {$ doc.name $} { + code(class="no-bg api-doc-code openParens") class {$ doc.name $}{$ doc.heritage $} { {% if doc.statics.length %} div(layout="column") diff --git a/tools/api-builder/angular.io-package/templates/interface.template.html b/tools/api-builder/angular.io-package/templates/interface.template.html index 1567e4cf35..fca4d9b4d0 100644 --- a/tools/api-builder/angular.io-package/templates/interface.template.html +++ b/tools/api-builder/angular.io-package/templates/interface.template.html @@ -17,7 +17,7 @@ div(layout="row" layout-xs="column" class="ng-cloak") div(flex="20" flex-xs="100") h2(class="h2-api-docs") Interface Overview div(flex="80" flex-xs="100") - code(class="no-bg api-doc-code openParens") interface {$ doc.name $} { + code(class="no-bg api-doc-code openParens") interface {$ doc.name $}{$ doc.heritage $} { {% if doc.members.length %} div(layout="column")