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">' + (
|
.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) {
|
||||||
|
|
Loading…
Reference in a new issue