DocPage: append element, not text

This commit is contained in:
rolux 2013-12-06 21:34:01 +01:00
parent 0dd96d8080
commit 81d9af2013

View file

@ -180,13 +180,17 @@ Ox.DocPage = function(options, self) {
} }
}) })
) )
.append('<span class="OxSection">' + ( .append(
Ox.$('<span>')
.addClass('OxSection')
.html(
Ox.contains(section, 'inherited') Ox.contains(section, 'inherited')
? section[0].toUpperCase() + section.slice(1) ? section[0].toUpperCase() + section.slice(1)
: Ox.toTitleCase( : Ox.toTitleCase(
section == 'returns' ? 'usage' : section section == 'returns' ? 'usage' : section
) )
) + '</span>') )
)
); );
if (section == 'tests') { if (section == 'tests') {
item.tests.forEach(function(test) { item.tests.forEach(function(test) {