[gnome-shell/wip/fmuellner/more-minor-bug-fixes: 4/7] objectManager: Fix index mix-up



commit 95224bd006ee76bb20e4d5fcb882870405823aba
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jan 31 14:15:58 2019 +0100

    objectManager: Fix index mix-up
    
    Spotted by eslint.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/388

 js/misc/objectManager.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/misc/objectManager.js b/js/misc/objectManager.js
index 26186dd6b..a708ac818 100644
--- a/js/misc/objectManager.js
+++ b/js/misc/objectManager.js
@@ -281,8 +281,8 @@ var ObjectManager = class {
             let object = this._objects[objectPaths];
 
             let interfaceNames = Object.keys(object);
-            for (let j = 0; i < interfaceNames.length; i++) {
-                let interfaceName = interfaceNames[i];
+            for (let j = 0; j < interfaceNames.length; j++) {
+                let interfaceName = interfaceNames[j];
                 if (object[interfaceName])
                     proxies.push(object(interfaceName));
             }


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