From 9deffcfee28ea063472571900898314ae4ae32db Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 23 May 2015 15:01:20 +0530 Subject: [PATCH] revert r3694, undefined values should not return emtpy string --- source/Ox/js/Format.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index b55485a4..77a66378 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -559,9 +559,9 @@ Ox.formatDimensions 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 : ''); }; /*@