[#34,query][s]: rename offset to from on query object.

* More natural in fact and we may as well go whole hog with ES structure.
This commit is contained in:
Rufus Pollock
2012-02-27 20:54:02 +00:00
parent b4c729b7bb
commit bd6123403e
5 changed files with 12 additions and 12 deletions

View File

@@ -80,7 +80,7 @@ this.recline.Backend = this.recline.Backend || {};
},
query: function(model, queryObj) {
var numRows = queryObj.size;
var start = queryObj.offset;
var start = queryObj.from;
var dfd = $.Deferred();
results = this.datasets[model.id].documents;
// not complete sorting!

View File

@@ -40,7 +40,7 @@ this.recline.Backend = this.recline.Backend || {};
var base = model.get('webstore_url');
var data = {
_limit: queryObj.size
, _offset: queryObj.offset
, _offset: queryObj.from
};
var jqxhr = $.ajax({
url: base + '.json',