Ox.formatResolution: return empty string if array is undefined
This commit is contained in:
parent
3ed5da882f
commit
a7ea1a0c46
1 changed files with 2 additions and 2 deletions
|
@ -559,9 +559,9 @@ Ox.formatDimensions <f> Formats valus as dimension
|
||||||
"1,920 × 1,080 px"
|
"1,920 × 1,080 px"
|
||||||
@*/
|
@*/
|
||||||
Ox.formatDimensions = Ox.formatResolution = function(array, string) {
|
Ox.formatDimensions = Ox.formatResolution = function(array, string) {
|
||||||
return array.map(function(value) {
|
return array ? array.map(function(value) {
|
||||||
return Ox.formatNumber(value);
|
return Ox.formatNumber(value);
|
||||||
}).join(' × ') + (string ? ' ' + string : '');
|
}).join(' × ') + (string ? ' ' + string : '') : '';
|
||||||
};
|
};
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
|
|
Loading…
Reference in a new issue