don't return empty string for undefined values, handle in context browser

This commit is contained in:
j 2015-05-23 15:11:18 +05:30
commit 5da83f6f6d
2 changed files with 5 additions and 3 deletions

View file

@ -88,7 +88,9 @@ pandora.ui.browser = function() {
} else {
// fixme: this is duplicated many times
format = pandora.getSortKeyData(sortKey).format;
if (format) {
if (Ox.isUndefined(data[sortKey]) || Ox.isNull(data[sortKey])) {
info = '';
} else if (format) {
info = (
/^color/.test(format.type.toLowerCase()) ? Ox.Theme : Ox
)['format' + Ox.toTitleCase(format.type)].apply(