From 7e40b6fd658c632dd49891130c3ead8e3e01eb51 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Sat, 12 Nov 2016 15:47:00 +0000 Subject: [PATCH 1/2] style(matchUpDirectiveDecorators): fix linting errors --- .../processors/matchUpDirectiveDecorators.js | 6 +++--- 1 file changed, 3 insertions(+), 3 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 From 11556c34d4bf9355a0f721f66cbeb736e7cb44da Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Sat, 12 Nov 2016 15:47:47 +0000 Subject: [PATCH 2/2] fix(doc-gen/templates): ensure heritage is displayed --- .../angular.io-package/templates/class.template.html | 2 +- .../angular.io-package/templates/interface.template.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(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(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")