[Pkg-mozext-commits] [adblock-plus] 09/74: Issue 2260 - Replaced some more for..in loops with for..of fixing the UI

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 12:07:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 04d8ea97f4f70b848f7634e656265f8ce407a4d0
Author: Sebastian Noack <sebastian at adblockplus.org>
Date:   Thu Apr 2 19:38:42 2015 +0200

    Issue 2260 - Replaced some more for..in loops with for..of fixing the UI
---
 lib/appSupport.js | 2 +-
 lib/ui.js         | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/appSupport.js b/lib/appSupport.js
index 992d568..54a9e2f 100644
--- a/lib/appSupport.js
+++ b/lib/appSupport.js
@@ -876,7 +876,7 @@ switch (application)
     onShutdown.add(function()
     {
       let window = null;
-      for (window in UI.applicationWindows)
+      for (window of UI.applicationWindows)
         break;
 
       if (window && menuItem)
diff --git a/lib/ui.js b/lib/ui.js
index 32c5af4..5f19443 100644
--- a/lib/ui.js
+++ b/lib/ui.js
@@ -409,7 +409,7 @@ let UI = exports.UI =
         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 @@ let UI = exports.UI =
    */
   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 @@ let eventHandlers = [
 
 onShutdown.add(function()
 {
-  for (let window in UI.applicationWindows)
+  for (let window of UI.applicationWindows)
     if (UI.isBottombarOpen(window))
       UI.toggleBottombar(window);
 });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list