Bug 1308240 - Fix missing `this.` in Sync's Collection's getters. r?markh draft
authorThom Chiovoloni <tchiovoloni@mozilla.com>
Thu, 06 Oct 2016 11:54:59 -0400
changeset 421698 ce5d54f8e8969c73cc0b8b7672d6d50d8a357574
parent 421697 8cca966520005440b8f3a2219f702655e4032897
child 533134 5fbc95b1df0f5b06a68bd39035e36d249468e20c
push id31560
push userbmo:tchiovoloni@mozilla.com
push dateThu, 06 Oct 2016 15:57:04 +0000
reviewersmarkh
bugs1308240
milestone52.0a1
Bug 1308240 - Fix missing `this.` in Sync's Collection's getters. r?markh MozReview-Commit-ID: BsYFmkCMYU5
services/sync/modules/record.js
--- a/services/sync/modules/record.js
+++ b/services/sync/modules/record.js
@@ -606,23 +606,23 @@ Collection.prototype = {
   // index
   get sort() { return this._sort; },
   set sort(value) {
     this._sort = value;
     this._rebuildURL();
   },
 
   // Set information about the batch for this request.
-  get batch() { return _batch; },
+  get batch() { return this._batch; },
   set batch(value) {
     this._batch = value;
     this._rebuildURL();
   },
 
-  get commit() { return _commit; },
+  get commit() { return this._commit; },
   set commit(value) {
     this._commit = value && true;
     this._rebuildURL();
   },
 
   set recordHandler(onRecord) {
     // Save this because onProgress is called with this as the ChannelListener
     let coll = this;