Followup fix to bug 571759: make sure we don't create any globals, and iterate over the right thing. r=Standard8 over IRC.

This commit is contained in:
Siddharth Agarwal 2011-01-22 02:52:53 +05:30
Родитель d9cf457bcd
Коммит cfbaa78022
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -941,7 +941,7 @@ var specialTabs = {
break;
case "addon-install-failed":
// XXX TODO This isn't terribly ideal for the multiple failure case
for ([, install] in Iterator(installInfo.installs)) {
for (let [, install] in Iterator(installInfo.installs)) {
let host = (installInfo.originatingURI instanceof Ci.nsIStandardURL) &&
installInfo.originatingURI.host;
if (!host)
@ -1000,7 +1000,7 @@ var specialTabs = {
// installs.
let types = {};
let bestType = null;
for ([, install] in Iterator(installInfo)) {
for (let [, install] in Iterator(installInfo.installs)) {
if (install.type in types)
types[install.type]++;
else