forked from 0x2620/oxjs
update listLengh in addItems/removeItems
This commit is contained in:
parent
ac4dd51ed7
commit
1a7a5985d9
3 changed files with 6 additions and 3 deletions
|
|
@ -1507,6 +1507,7 @@ Ox.List = function(options, self) {
|
|||
});
|
||||
self.options.items.splice.apply(self.options.items, Ox.merge([pos, 0], items));
|
||||
self.$items.splice.apply(self.$items, Ox.merge([pos, 0], $items));
|
||||
self.listLength += length;
|
||||
//loadItems();
|
||||
updatePositions();
|
||||
}
|
||||
|
|
@ -1656,6 +1657,7 @@ Ox.List = function(options, self) {
|
|||
self.selected[i] -= length;
|
||||
}
|
||||
});
|
||||
self.listLength -= length;
|
||||
updatePositions();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue