From 8d940f52220d4de06cfd2d90e2588bbf328974f5 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 13 Oct 2011 11:33:19 +0000 Subject: [PATCH] fix a bug with setting the items option of a static list to [] --- source/Ox.UI/js/List/Ox.List.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 7eb6aadd..2d679d4d 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -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) {