fix a bug with computing keys
This commit is contained in:
parent
8296d3c405
commit
d6dcf33427
1 changed files with 1 additions and 4 deletions
|
@ -828,10 +828,7 @@ Ox.List = function(options, self) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Ox.Log('List', that.oxid, 'loadPage', page);
|
Ox.Log('List', that.oxid, 'loadPage', page);
|
||||||
var keys = (
|
var keys = Ox.unique(self.options.keys.concat(self.options.unique)),
|
||||||
self.options.keys.indexOf(self.options.unique == -1)
|
|
||||||
? [self.options.unique] : []
|
|
||||||
).concat(self.options.keys),
|
|
||||||
offset = page * self.pageLength,
|
offset = page * self.pageLength,
|
||||||
range = [offset, offset + getPageLength(page)];
|
range = [offset, offset + getPageLength(page)];
|
||||||
if (Ox.isUndefined(self.$pages[page])) { // fixme: unload will have made this undefined already
|
if (Ox.isUndefined(self.$pages[page])) { // fixme: unload will have made this undefined already
|
||||||
|
|
Loading…
Reference in a new issue