Update Worker.js
How in the world! I thought I checked this yesterday! In any case, the append should not be limited this way. Breaks search.
This commit is contained in:
parent
ba5ef7432e
commit
3bb76d7121
1 changed files with 3 additions and 1 deletions
|
@ -162,7 +162,8 @@ function addDataToModel (model, mode, items) {
|
||||||
console.log("Fetched > " +length + " in " + mode)
|
console.log("Fetched > " +length + " in " + mode)
|
||||||
var i
|
var i
|
||||||
if (mode === "append") {
|
if (mode === "append") {
|
||||||
|
model.append(items)
|
||||||
|
/*
|
||||||
for(i = 0; i <= length-1; i++) {
|
for(i = 0; i <= length-1; i++) {
|
||||||
if ( knownIds.indexOf( items[i]["id"]) === -1) {
|
if ( knownIds.indexOf( items[i]["id"]) === -1) {
|
||||||
if ( items[i]["id"] < max_id ) {
|
if ( items[i]["id"] < max_id ) {
|
||||||
|
@ -172,6 +173,7 @@ function addDataToModel (model, mode, items) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
} else if (mode === "prepend") {
|
} else if (mode === "prepend") {
|
||||||
for(i = length-1; i >= 0 ; i--) {
|
for(i = length-1; i >= 0 ; i--) {
|
||||||
if ( knownIds.indexOf( items[i]["id"]) === -1) {
|
if ( knownIds.indexOf( items[i]["id"]) === -1) {
|
||||||
|
|
Loading…
Reference in a new issue