fix a bug with setting the items option of a static list to []

This commit is contained in:
rlx 2011-10-13 11:33:19 +00:00
parent 4197f24e65
commit 8d940f5222

View file

@ -1351,7 +1351,7 @@ Ox.List = function(options, self) {
operator = self.options.sort[0].operator, operator = self.options.sort[0].operator,
selectedIds, selectedIds,
sort = {}; sort = {};
if (self.listLength > 1) { //if (self.listLength > 1) {
if (!self.isAsync) { if (!self.isAsync) {
selectedIds = getSelectedIds(); selectedIds = getSelectedIds();
self.options.items.forEach(function(item) { self.options.items.forEach(function(item) {
@ -1381,7 +1381,7 @@ Ox.List = function(options, self) {
clear(); // fixme: bad function name clear(); // fixme: bad function name
getPositions(); getPositions();
} }
} //}
} }
self.setOption = function(key, value) { self.setOption = function(key, value) {