1
0
Fork 0
forked from 0x2620/oxjs

better Ox.isEqual(), more tests, more documentation

This commit is contained in:
rolux 2011-05-08 14:14:07 +02:00
commit 37219bfbe9
5 changed files with 466 additions and 252 deletions

View file

@ -6,7 +6,7 @@ Ox.DocPage = function(options, self) {
item: {}
})
.options(options || {})
.addClass('OxText')
.addClass('OxDocPage OxText')
.css({
overflow: 'auto'
});
@ -42,8 +42,13 @@ Ox.DocPage = function(options, self) {
if (item[section]) {
if (section == 'description') {
$elements.push($('<div>')
.css({paddingLeft: (level * 32) + 'px'})
.html(item.description)
.css({
paddingTop: (level ? 0 : 8) + 'px',
borderTop: level ? '': '1px solid rgb(192, 192, 192)',
marginTop: (level ? 0 : 8) + 'px',
marginLeft: (level * 32) + 'px',
})
.html(Ox.parseHTML(item.description))
);
} else {
$elements.push($('<div>')
@ -108,7 +113,7 @@ Ox.DocPage = function(options, self) {
.addClass(className)
.css({marginLeft: (level * 32 + 16) + 'px'})
.html(
'<code>' + Ox.parseHTML(example.result) + '</code>'
'<code>' + Ox.encodeHTML(example.result) + '</code>'
)
)
});