Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/ui.js

Issue 5643346198396928: Issue 2260 - Replaced some more for..in loops with for..of fixing the UI (Closed)
Patch Set: Created April 2, 2015, 5:39 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/appSupport.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ui.js
===================================================================
--- a/lib/ui.js
+++ b/lib/ui.js
@@ -409,7 +409,7 @@
this.updateState();
else if (name == "showinstatusbar")
{
- for (let window in this.applicationWindows)
+ for (let window of this.applicationWindows)
this.updateStatusbarIcon(window);
}
}.bind(this));
@@ -1085,7 +1085,7 @@
*/
updateState: function()
{
- for (let window in this.applicationWindows)
+ for (let window of this.applicationWindows)
{
this.updateIconState(window, window.document.getElementById("abp-status"));
this.updateIconState(window, window.document.getElementById("abp-toolbarbutton"));
@@ -1966,7 +1966,7 @@
onShutdown.add(function()
{
- for (let window in UI.applicationWindows)
+ for (let window of UI.applicationWindows)
if (UI.isBottombarOpen(window))
UI.toggleBottombar(window);
});
« no previous file with comments | « lib/appSupport.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld