mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1105404 - Remove deprecated for-each-in loops in about:sessionrestore. r=mak
This commit is contained in:
parent
ea2331242e
commit
8ad237086a
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user