Bug 1122430 - Use for..of iteration instead of Array.forEach in ctrlTab.suspendGUI. r=dao

This commit is contained in:
Vikram Jadhav 2015-01-16 07:56:00 -05:00
parent cf8cf274c6
commit 1e21312b56

View File

@ -399,9 +399,9 @@ var ctrlTab = {
suspendGUI: function ctrlTab_suspendGUI() {
document.removeEventListener("keyup", this, true);
Array.forEach(this.previews, function (preview) {
for (let preview of this.previews) {
this.updatePreview(preview, null);
}, this);
}
},
onKeyPress: function ctrlTab_onKeyPress(event) {