From 3d33a166689fca5114da2c1c2dc04b6db39c878c Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 16 Jan 2014 07:55:14 +0000 Subject: [PATCH] fix Ox.formatDimensions --- source/Ox/js/Format.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index 8d1b8d7d..95460b9a 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -554,10 +554,12 @@ Ox.formatDegrees = function(degrees, mode) { /*@ Ox.formatDimensions 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 : ''); }; /*@