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'
], id) ? 'right' : 'left',
format: function(value) {
return Ox.encodeHTMLEntities(key.format(value));
return Ox.encodeHTMLEntities(
(key.format || Ox.identity)(value)
);
},
id: id,
operator: oml.getSortOperator(id),