fix a regression in Ox.TreeList
This commit is contained in:
parent
2f507feeee
commit
f033877f41
1 changed files with 7 additions and 3 deletions
|
@ -160,9 +160,13 @@ Ox.TreeList = function(options, self) {
|
||||||
if (type == 'array' || type == 'object') {
|
if (type == 'array' || type == 'object') {
|
||||||
ret.title += Ox.toTitleCase(type)
|
ret.title += Ox.toTitleCase(type)
|
||||||
+ ' <span class="OxLight">[' + Ox.len(value) + ']</span>';
|
+ ' <span class="OxLight">[' + Ox.len(value) + ']</span>';
|
||||||
ret.items = Ox.sort(Ox.map(value, function(v, k) {
|
ret.items = Ox.sort(
|
||||||
return parseData(k, v);
|
type == 'array' ? value.map(function(v, i) {
|
||||||
}));
|
return parseData(i, v);
|
||||||
|
}) : Object.keys(value).map(function(k) {
|
||||||
|
return parseData(k, value[k]);
|
||||||
|
})
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
ret.title += (
|
ret.title += (
|
||||||
type == 'function'
|
type == 'function'
|
||||||
|
|
Loading…
Reference in a new issue