From c8cdcc92c031140c6746835148c7353ff7ffd7cf Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 15 Jun 2012 11:32:27 +0200 Subject: [PATCH] minor cleanup --- source/Ox.UI/js/Form/InputGroup.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Form/InputGroup.js b/source/Ox.UI/js/Form/InputGroup.js index 1b1e98b0..a0b51353 100644 --- a/source/Ox.UI/js/Form/InputGroup.js +++ b/source/Ox.UI/js/Form/InputGroup.js @@ -67,8 +67,11 @@ Ox.InputGroup = function(options, self) { }) .css({ marginLeft: -Ox.sum(self.options.inputs.map(function($input, i_) { - return i_ > i ? self.options.inputs[i_ - 1].options('width') + - self.options.separators[i_ - 1].width : (i_ == i ? 16 : 0); + return i_ > i + ? self.options.inputs[i_ - 1].options('width') + + self.options.separators[i_ - 1].width + : i_ == i ? 16 + : 0; })) + 'px' }) .bindEvent({