Clear the results in the case of a zero-item result

Change-Id: I80012c1008a21ddb992a451bc5144e3f4d3e6960
This commit is contained in:
Aaron Boodman 2013-12-09 00:20:36 -08:00
parent a833a2d376
commit e8a6569744
1 changed files with 4 additions and 4 deletions

View File

@ -330,15 +330,15 @@ camlistore.BlobItemContainer.prototype.search = function(callerConstraint,
camlistore.BlobItemContainer.prototype.searchDone_ = function(constraint,
reset, result) {
if (reset) {
this.resetChildren_();
}
if (!result.blobs || !result.blobs.length) {
console.log("Did not get any results. We must be done!");
return;
}
if (reset) {
this.resetChildren_();
}
this.appendChildren_(result);
var lastItem = result.description.meta[