From 95224bd006ee76bb20e4d5fcb882870405823aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 31 Jan 2019 14:15:58 +0100 Subject: [PATCH] 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)); }