fix a bug with setting the items option of a static list to []
This commit is contained in:
parent
4197f24e65
commit
8d940f5222
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue