diff --git a/source/Ox.UI/js/Form/InputGroup.js b/source/Ox.UI/js/Form/InputGroup.js index 3cd1b47a..1b1e98b0 100644 --- a/source/Ox.UI/js/Form/InputGroup.js +++ b/source/Ox.UI/js/Form/InputGroup.js @@ -12,6 +12,7 @@ Ox.InputGroup InputGroup Object @*/ Ox.InputGroup = function(options, self) { + self = self || {}; var that = Ox.Element({}, self) .defaults({ @@ -79,7 +80,6 @@ Ox.InputGroup = function(options, self) { }); function change(data) { - //Ox.Log('Form', 'InputGroup change') self.options.value = getValue(); that.triggerEvent('change', { value: self.options.value @@ -109,7 +109,7 @@ Ox.InputGroup = function(options, self) { return v.options('width'); })) + Ox.sum(self.options.separators.map(function(v) { return v.width; - }));// + 2; // fixme: why + 2? + })); } function setValue() { @@ -143,7 +143,6 @@ Ox.InputGroup = function(options, self) { that.getInputById = function(id) { var input = null; Ox.forEach(self.options.inputs, function(v, i) { - //Ox.Log('Form', v, v.options('id'), id) if (v.options('id') == self.options.id + Ox.toTitleCase(id)) { input = v; Ox.Break();