From 5219e46225c945c65fd868a8460eb2afb30e6b54 Mon Sep 17 00:00:00 2001 From: Dan Mills Date: Tue, 3 Feb 2009 15:54:30 -0800 Subject: [PATCH] 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 --- services/sync/modules/base_records/collection.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/services/sync/modules/base_records/collection.js b/services/sync/modules/base_records/collection.js index 34837d60d41e..20d642280bcf 100644 --- a/services/sync/modules/base_records/collection.js +++ b/services/sync/modules/base_records/collection.js @@ -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(); },