From d6dcf334275941abff29250a3547efb171776c63 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 27 Jun 2012 20:29:39 +0200 Subject: [PATCH] fix a bug with computing keys --- source/Ox.UI/js/List/List.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/Ox.UI/js/List/List.js b/source/Ox.UI/js/List/List.js index b2e0be79..95863fc7 100644 --- a/source/Ox.UI/js/List/List.js +++ b/source/Ox.UI/js/List/List.js @@ -828,10 +828,7 @@ Ox.List = function(options, self) { return; } Ox.Log('List', that.oxid, 'loadPage', page); - var keys = ( - self.options.keys.indexOf(self.options.unique == -1) - ? [self.options.unique] : [] - ).concat(self.options.keys), + var keys = Ox.unique(self.options.keys.concat(self.options.unique)), offset = page * self.pageLength, range = [offset, offset + getPageLength(page)]; if (Ox.isUndefined(self.$pages[page])) { // fixme: unload will have made this undefined already