correctly display 'inherited properties' section title
This commit is contained in:
parent
9b6b6fd356
commit
82599aec75
1 changed files with 2 additions and 2 deletions
|
@ -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 <code>'
|
||||
var section = 'Properties inherited from <code>'
|
||||
+ v.name + '</code>';
|
||||
item[section] = v.properties;
|
||||
return section;
|
||||
|
@ -163,7 +163,7 @@ Ox.DocPage = function(options, self) {
|
|||
})
|
||||
)
|
||||
.append('<span class="OxSection">' + (
|
||||
Ox.startsWith('properties ', section) ? section
|
||||
Ox.startsWith(section, 'Properties') ? section
|
||||
: Ox.toTitleCase(
|
||||
section == 'returns' ? 'usage'
|
||||
: section == 'tests' ? 'examples'
|
||||
|
|
Loading…
Reference in a new issue