fix Ox.formatDimensions

This commit is contained in:
rolux 2014-01-16 07:55:14 +00:00
parent e48b1226f4
commit 3d33a16668

View file

@ -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 : '');
};
/*@