Bug 1217983 - Remove for-each from b2g/. r=fabrice
authorTooru Fujisawa <arai_a@mac.com>
Mon, 19 Oct 2015 00:11:49 +0900
changeset 304548 6e1c8c268f842b440ff04295ba2bb994f04b4be7
parent 304547 00dac1d05d6097e885f1115ec74a64a9f92d044d
child 304549 0744ace1b2b9a0b1c744536fbb75144154bfe20e
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs1217983
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1217983 - Remove for-each from b2g/. r=fabrice
b2g/components/UpdatePrompt.js
--- a/b2g/components/UpdatePrompt.js
+++ b/b2g/components/UpdatePrompt.js
@@ -426,17 +426,17 @@ UpdatePrompt.prototype = {
   },
 
   _copyProperties: ["appVersion", "buildID", "detailsURL", "displayVersion",
                     "errorCode", "isOSUpdate", "platformVersion",
                     "previousAppVersion", "state", "statusText"],
 
   sendUpdateEvent: function UP_sendUpdateEvent(aType, aUpdate) {
     let detail = {};
-    for each (let property in this._copyProperties) {
+    for (let property of this._copyProperties) {
       detail[property] = aUpdate[property];
     }
 
     let patch = aUpdate.selectedPatch;
     if (!patch && aUpdate.patchCount > 0) {
       // For now we just check the first patch to get size information if a
       // patch hasn't been selected yet.
       patch = aUpdate.getPatchAt(0);