From ff1714013cd47e060279bd989b433e9d1c0d3269 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 26 Jul 2011 16:36:31 +0200 Subject: [PATCH] minor changes in tree list --- source/Ox.UI/js/List/Ox.TreeList.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/Ox.UI/js/List/Ox.TreeList.js b/source/Ox.UI/js/List/Ox.TreeList.js index 676a082f..4e2e2103 100644 --- a/source/Ox.UI/js/List/Ox.TreeList.js +++ b/source/Ox.UI/js/List/Ox.TreeList.js @@ -138,19 +138,19 @@ Ox.TreeList = function(options, self) { //Ox.print('parseData', key, value) var ret = { id: Ox.uid(), - title: key.toString() + title: key.toString() + ': ' }, type = Ox.typeOf(value); if (type == 'array' || type == 'object') { - ret.title += ': ' + Ox.toTitleCase(type); + ret.title += Ox.toTitleCase(type); ret.items = Ox.map(Ox.sort(Ox.keys(value)), function(k) { return parseData(k, value[k]); }); } else { - ret.title += ': ' + ( + ret.title += ( type == 'function' ? - value.toString().split('{')[0] : - JSON.stringify(value) + value.toString().split('{')[0] : + JSON.stringify(value) ); } return ret;