key.format may be undefined

This commit is contained in:
rlx 2016-01-17 15:59:00 +05:30
parent 2f6a9ac82f
commit 36be2bb3b2

View file

@ -15,7 +15,9 @@ oml.ui.transfersPanel = function() {
'size', 'transferprogress' 'size', 'transferprogress'
], id) ? 'right' : 'left', ], id) ? 'right' : 'left',
format: function(value) { format: function(value) {
return Ox.encodeHTMLEntities(key.format(value)); return Ox.encodeHTMLEntities(
(key.format || Ox.identity)(value)
);
}, },
id: id, id: id,
operator: oml.getSortOperator(id), operator: oml.getSortOperator(id),