diff --git a/source/UI/js/Form/FormElementGroup.js b/source/UI/js/Form/FormElementGroup.js index 2346a08d..c7ab40c4 100644 --- a/source/UI/js/Form/FormElementGroup.js +++ b/source/UI/js/Form/FormElementGroup.js @@ -115,12 +115,18 @@ Ox.FormElementGroup = function(options, self) { value value @*/ that.value = function() { - var values = self.options.elements.map(function(element) { - return element.value ? element.value() : void 0; - }); - return self.options.joinValues - ? self.options.joinValues(values) - : values; + var values; + if (arguments.length == 0) { + values = self.options.elements.map(function(element) { + return element.value ? element.value() : void 0; + }); + return self.options.join + ? self.options.join(values) + : values; + } else { + setValue(); + return that; + } }; return that;