1
0
Fork 0
forked from 0x2620/oxjs

combine multiple list.value into one

This commit is contained in:
j 2014-02-13 09:31:06 +00:00
commit a7f520281d
2 changed files with 6 additions and 3 deletions

View file

@ -1236,8 +1236,8 @@ Ox.TableList = function(options, self) {
} else if (arguments.length == 2 && Ox.isString(arguments[1])) {
return that.$body.value(id, arguments[1]);
} else {
that.$body.value(id, Ox.makeObject(args));
Ox.forEach(Ox.makeObject(args), function(value, key) {
that.$body.value(id, key, value);
if (key == self.options.unique) {
// unique id has changed
self.options.selected = self.options.selected.map(function(id_) {