Bug 608112 - undeclared variable formatted chrome://mozapps/content/extensions/extensions.js line: 2086. r=dtownsend, a=b7
authorRobert Strong <robert.bugzilla@gmail.com>
Fri, 29 Oct 2010 12:04:20 -0700
changeset 56688 69dd9e0ae852999e37e486feec81f0869e300189
parent 56687 ef7f187f649c0b81cf9b508ba20a580d8f8ddcb0
child 56689 7026084ea102f78a12f589c15a958bd438b16438
push idunknown
push userunknown
push dateunknown
reviewersdtownsend, b7
bugs608112
milestone2.0b8pre
Bug 608112 - undeclared variable formatted chrome://mozapps/content/extensions/extensions.js line: 2086. r=dtownsend, a=b7
toolkit/mozapps/extensions/content/extensions.js
--- a/toolkit/mozapps/extensions/content/extensions.js
+++ b/toolkit/mozapps/extensions/content/extensions.js
@@ -2078,17 +2078,17 @@ var gDetailView = {
       reviews.hidden = true;
     }
 
     document.getElementById("detail-rating-row").hidden = !aAddon.averageRating && !aAddon.reviewURL;
 
     var sizeRow = document.getElementById("detail-size");
     if (aAddon.size && aIsRemote) {
       let [size, unit] = DownloadUtils.convertByteUnits(parseInt(aAddon.size));
-      formatted = gStrings.dl.GetStringFromName("doneSize");
+      let formatted = gStrings.dl.GetStringFromName("doneSize");
       formatted = formatted.replace("#1", size).replace("#2", unit);
       sizeRow.value = formatted;
     } else {
       sizeRow.value = null;
     }
 
     var downloadsRow = document.getElementById("detail-downloads");
     if (aAddon.totalDownloads && aIsRemote) {