minor cleanup

This commit is contained in:
rolux 2012-06-15 11:32:27 +02:00
parent b2eaf6a867
commit c8cdcc92c0

View file

@ -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({