This commit is contained in:
j 2012-05-30 02:32:14 +02:00
parent 888bf094ad
commit 2f98800715

View file

@ -174,11 +174,10 @@ Ox.TreeList = function(options, self) {
ret.title += Ox.toTitleCase(type)
+ ' <span class="OxLight">[' + Ox.len(value) + ']</span>';
ret.items = type == 'array' ? value.map(function(v, i) {
return parseData(i, v);
}) : Ox.sort(Object.keys(value)).map(function(k) {
return parseData(k, value[k]);
})
);
return parseData(i, v);
}) : Ox.sort(Object.keys(value)).map(function(k) {
return parseData(k, value[k]);
});
} else {
ret.title += (
type == 'function'