DocPage: append element, not text
This commit is contained in:
parent
0dd96d8080
commit
81d9af2013
1 changed files with 10 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue