mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
collection searches for records older than a certain date now use the 'older' parameter instead of 'modified', since the latter is ambiguous depending on the verb used
This commit is contained in:
parent
d49465a6b0
commit
5219e46225
@ -65,7 +65,7 @@ Collection.prototype = {
|
||||
this._init(uri);
|
||||
this.pushFilter(new JsonFilter());
|
||||
this._full = true;
|
||||
this._modified = 0;
|
||||
this._older = 0;
|
||||
this._data = [];
|
||||
},
|
||||
|
||||
@ -74,8 +74,8 @@ Collection.prototype = {
|
||||
this.uri.QueryInterface(Ci.nsIURL);
|
||||
|
||||
let args = [];
|
||||
if (this.modified)
|
||||
args.push('modified=' + this.modified);
|
||||
if (this.older)
|
||||
args.push('older=' + this.older);
|
||||
if (this.full)
|
||||
args.push('full=1');
|
||||
if (this.sort)
|
||||
@ -92,9 +92,9 @@ Collection.prototype = {
|
||||
},
|
||||
|
||||
// get only items modified since some date
|
||||
get modified() { return this._modified; },
|
||||
set modified(value) {
|
||||
this._modified = value;
|
||||
get older() { return this._older; },
|
||||
set older(value) {
|
||||
this._older = value;
|
||||
this._rebuildURL();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user