Bug 823042 - Fix redeclared argument warnings. r=Mossop
authorJonathan Kamens <jik@kamens.us>
Wed, 19 Dec 2012 09:10:19 -0500
changeset 116973 4f74d77d6d8bd8eb806de6197af1363a02941f97
parent 116972 a3f4fd5bd56383f97f3ee0cf8369fc6cd5df12ab
child 116974 0372c8ff4b5fb4ef8a4ca6d5e301f88d0b8cc578
push id20218
push userryanvm@gmail.com
push dateSun, 23 Dec 2012 16:45:42 +0000
treeherdermozilla-inbound@4f74d77d6d8b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs823042
milestone20.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 823042 - Fix redeclared argument warnings. r=Mossop
toolkit/mozapps/extensions/content/update.js
--- a/toolkit/mozapps/extensions/content/update.js
+++ b/toolkit/mozapps/extensions/content/update.js
@@ -208,19 +208,19 @@ var gVersionInfoPage = {
 
     if (status != AddonManager.UPDATE_STATUS_NO_ERROR)
       gUpdateWizard.errorItems.push(aAddon);
 
     ++this._completeCount;
 
     // Update the status text and progress bar
     var updateStrings = document.getElementById("updateStrings");
-    var status = document.getElementById("versioninfo.status");
+    var statusElt = document.getElementById("versioninfo.status");
     var statusString = updateStrings.getFormattedString("statusPrefix", [aAddon.name]);
-    status.setAttribute("value", statusString);
+    statusElt.setAttribute("value", statusString);
 
     // Update the status text and progress bar
     var progress = document.getElementById("versioninfo.progress");
     progress.mode = "normal";
     progress.value = Math.ceil((this._completeCount / this._totalCount) * 100);
 
     if (this._completeCount == this._totalCount)
       this.onAllUpdatesFinished();
@@ -282,19 +282,19 @@ var gUpdatePage = {
   onUpdateFinished: function gUpdatePage_onUpdateFinished(aAddon, status) {
     if (status != AddonManager.UPDATE_STATUS_NO_ERROR)
       gUpdateWizard.errorItems.push(aAddon);
 
     ++this._completeCount;
 
     // Update the status text and progress bar
     var updateStrings = document.getElementById("updateStrings");
-    var status = document.getElementById("checking.status");
+    var statusElt = document.getElementById("checking.status");
     var statusString = updateStrings.getFormattedString("statusPrefix", [aAddon.name]);
-    status.setAttribute("value", statusString);
+    statusElt.setAttribute("value", statusString);
 
     var progress = document.getElementById("checking.progress");
     progress.value = Math.ceil((this._completeCount / this._totalCount) * 100);
 
     if (this._completeCount == this._totalCount)
       this.onAllUpdatesFinished()
   },
 };