revert r3694, undefined values should not return emtpy string

This commit is contained in:
j 2015-05-23 15:01:20 +05:30
parent a7ea1a0c46
commit 9deffcfee2

View file

@ -559,9 +559,9 @@ Ox.formatDimensions <f> Formats valus as dimension
"1,920 × 1,080 px"
@*/
Ox.formatDimensions = Ox.formatResolution = function(array, string) {
return array ? array.map(function(value) {
return array.map(function(value) {
return Ox.formatNumber(value);
}).join(' × ') + (string ? ' ' + string : '') : '';
}).join(' × ') + (string ? ' ' + string : '');
};
/*@