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">' + (
Ox.contains(section, 'inherited')
? section[0].toUpperCase() + section.slice(1)
: Ox.toTitleCase(
section == 'returns' ? 'usage' : section
.append(
Ox.$('<span>')
.addClass('OxSection')
.html(
Ox.contains(section, 'inherited')
? section[0].toUpperCase() + section.slice(1)
: Ox.toTitleCase(
section == 'returns' ? 'usage' : section
)
)
) + '</span>')
)
);
if (section == 'tests') {
item.tests.forEach(function(test) {