Bug 679279 - Part 2: add missing 'let' in async.js and service.js to avoid strict warning. r=philikon
authorRichard Newman <rnewman@mozilla.com>
Fri, 19 Aug 2011 17:17:58 -0700
changeset 75727 7e4d90c683519e6877acc7c482baf00f4a06e50f
parent 75726 61eaf2179fef1c092cce12b680608aae252e4e24
child 75728 becba4169e3738740e5130f848b3a6be0dc83843
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersphilikon
bugs679279
milestone9.0a1
Bug 679279 - Part 2: add missing 'let' in async.js and service.js to avoid strict warning. r=philikon
services/sync/modules/async.js
services/sync/modules/service.js
--- a/services/sync/modules/async.js
+++ b/services/sync/modules/async.js
@@ -295,17 +295,17 @@ let Async = {
         return;
       }
       if (!this.results) {
         this.results = [];
       }
       let row;
       while ((row = results.getNextRow()) != null) {
         let item = {};
-        for each (name in this.names) {
+        for each (let name in this.names) {
           item[name] = row.getResultByName(name);
         }
         this.results.push(item);
       }
     },
     handleError: function handleError(error) {
       this.syncCb.throw(error);
     },
--- a/services/sync/modules/service.js
+++ b/services/sync/modules/service.js
@@ -1572,17 +1572,17 @@ WeaveSvc.prototype = {
       } else {
         // The engine was enabled remotely. Enable it locally.
         this._log.trace(engineName + " engine was enabled remotely.");
         engine.enabled = true;
       }
     }
 
     // Any remaining engines were either enabled locally or disabled remotely.
-    for each (engineName in enabled) {
+    for each (let engineName in enabled) {
       let engine = Engines.get(engineName);
       if (Svc.Prefs.get("engineStatusChanged." + engine.prefName, false)) {
         this._log.trace("The " + engineName + " engine was enabled locally.");
       } else {
         this._log.trace("The " + engineName + " engine was disabled remotely.");
         engine.enabled = false;
       }
     }