[gnome-shell-extensions] windowsNavigator: Use regular for() loops



commit 8c551ba8ee0bf1802a519f2a61f50e4ae4a2005f
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Oct 20 17:59:28 2017 +0200

    windowsNavigator: Use regular for() loops
    
    "for each ... in" has been deprecated for a long time and won't be
    supported in upcoming SpiderMonkey versions, so replace it with
    "for ... of" instead.

 extensions/windowsNavigator/extension.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js
index c19ff0c..f674eff 100644
--- a/extensions/windowsNavigator/extension.js
+++ b/extensions/windowsNavigator/extension.js
@@ -274,10 +274,10 @@ function disable() {
     for (i in workViewInjections)
         removeInjection(WorkspacesView.WorkspacesView.prototype, workViewInjections, i);
 
-    for each (i in connectedSignals)
+    for (i of connectedSignals)
         i.obj.disconnect(i.id);
 
-    for each (i in createdActors)
+    for (i of createdActors)
         i.destroy();
 
     resetState();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]