Bug 1217423 - Remove for-each from webapprt/. r=paolo, f=marco

This commit is contained in:
Tooru Fujisawa 2015-10-19 05:43:18 +09:00
parent dff4f276b7
commit 16755b4daf
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ function test() {
waitForExplicitFinish();
loadWebapp("download.webapp", undefined, function onLoad() {
for each (let download in downloadsInList) {
for (let download of downloadsInList) {
list.addDownload(download);
}
});

View File

@ -168,9 +168,9 @@ function waitDownloadListPopulation(aWin) {
let disconnected = false;
var observer = new MutationObserver(function(aMutations) {
for each (let mutation in aMutations) {
for (let mutation of aMutations) {
if (mutation.addedNodes) {
for each (let node in mutation.addedNodes) {
for (let node of mutation.addedNodes) {
if (node.id == "downloadView") {
observer.disconnect();
disconnected = true;