use empty string if value is undefined or null, fixes #2790

This commit is contained in:
j 2015-05-23 18:02:24 +02:00
parent 4705e33ef1
commit e063cc7020

View file

@ -44,7 +44,9 @@ pandora.ui.clipList = function(videoRatio) {
+ Ox.formatDuration(data.out); + Ox.formatDuration(data.out);
} else { } else {
format = pandora.getSortKeyData(sortKey).format; format = pandora.getSortKeyData(sortKey).format;
if (format) { if (Ox.isUndefined(data[sortKey]) || Ox.isNull(data[sortKey])) {
info = '';
} else if (format) {
info = ( info = (
/^color/.test(format.type.toLowerCase()) ? Ox.Theme : Ox /^color/.test(format.type.toLowerCase()) ? Ox.Theme : Ox
)['format' + Ox.toTitleCase(format.type)].apply( )['format' + Ox.toTitleCase(format.type)].apply(