fix Ox.formatDimensions
This commit is contained in:
parent
e48b1226f4
commit
3d33a16668
1 changed files with 4 additions and 2 deletions
|
@ -554,10 +554,12 @@ Ox.formatDegrees = function(degrees, mode) {
|
|||
/*@
|
||||
Ox.formatDimensions <f> Formats valus as dimension
|
||||
> Ox.formatDimensions([1920, 1080], 'px')
|
||||
"1920 × 1080 px"
|
||||
"1,920 × 1,080 px"
|
||||
@*/
|
||||
Ox.formatDimensions = Ox.formatResolution = function(array, string) {
|
||||
return array.join(' × ') + (string ? ' ' + string : '');
|
||||
return array.map(function(value) {
|
||||
return Ox.formatNumber(value);
|
||||
}).join(' × ') + (string ? ' ' + string : '');
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
Loading…
Reference in a new issue