1
0
Fork 0
forked from 0x2620/oxjs

- add loadAsync and use in Ox.loadFile, Ox.getJSON

- add Ox.getJSONP
- fix Ox.parseHTML
- fix Ox.Doc
- add more documentation
This commit is contained in:
j 2012-05-23 01:17:17 +02:00
commit 1b08732fa7
8 changed files with 106 additions and 103 deletions

View file

@ -47,7 +47,7 @@ Ox.TreeList = function(options, self) {
max: self.options.max,
min: self.options.min,
unique: 'id'
}, Ox.copy(self))
}, Ox.clone(self))
.addClass('OxTextList OxTreeList')
.css({
width: self.options.width + 'px',
@ -160,8 +160,8 @@ Ox.TreeList = function(options, self) {
if (type == 'array' || type == 'object') {
ret.title += Ox.toTitleCase(type)
+ ' <span class="OxLight">[' + Ox.len(value) + ']</span>';
ret.items = Ox.sort(Ox.keys(value).map(function(k) {
return parseData(k, value[k]);
ret.items = Ox.sort(Ox.map(value, function(v, k) {
return parseData(k, v);
}));
} else {
ret.title += (