Bug 1105404 - Remove deprecated for-each-in loops in about:sessionrestore. r=mak

This commit is contained in:
Chris Peterson 2014-11-25 23:49:08 -08:00
parent ea2331242e
commit 8ad237086a

View File

@ -2,6 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
Cu.import("resource://gre/modules/Services.jsm");
@ -84,7 +86,7 @@ function initTreeView() {
};
});
gTreeData.push(winState);
for each (var tab in winState.tabs)
for (let tab of winState.tabs)
gTreeData.push(tab);
}, this);
@ -224,7 +226,7 @@ function toggleRowChecked(aIx) {
if (treeView.isContainer(aIx)) {
// (un)check all tabs of this window as well
for each (var tab in item.tabs) {
for (let tab of item.tabs) {
tab.checked = item.checked;
treeView.treeBox.invalidateRow(gTreeData.indexOf(tab));
}