1
0
Fork 0
forked from 0x2620/oxjs

updating form elements

This commit is contained in:
rolux 2011-12-30 15:03:01 +05:30
commit 73f1105692
13 changed files with 305 additions and 140 deletions

View file

@ -115,11 +115,7 @@ Ox.FormElementGroup = function(options, self) {
that.value = function() {
var values = self.options.elements.map(function(element) {
var ret = null;
['checked', 'selected', 'value'].forEach(function(v) {
element[v] && (ret = element[v]());
});
return ret;
return element.value();
});
return self.options.joinValues
? self.options.joinValues(values)