From 82599aec7535508de8d07f471e2aa60b29c3d4c4 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 2 Jun 2012 12:01:35 +0200 Subject: [PATCH] correctly display 'inherited properties' section title --- source/Ox.UI/js/Code/DocPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Code/DocPage.js b/source/Ox.UI/js/Code/DocPage.js index e2fcb536..c3550f6d 100644 --- a/source/Ox.UI/js/Code/DocPage.js +++ b/source/Ox.UI/js/Code/DocPage.js @@ -98,7 +98,7 @@ Ox.DocPage = function(options, self) { if (item.inherited) { Array.prototype.splice.apply(sections, [index, 0].concat( item.inherited.map(function(v, i) { - var section = 'properties inherited from ' + var section = 'Properties inherited from ' + v.name + ''; item[section] = v.properties; return section; @@ -163,7 +163,7 @@ Ox.DocPage = function(options, self) { }) ) .append('' + ( - Ox.startsWith('properties ', section) ? section + Ox.startsWith(section, 'Properties') ? section : Ox.toTitleCase( section == 'returns' ? 'usage' : section == 'tests' ? 'examples'