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