objectManager: Fix index mix-up

Spotted by eslint.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/388
This commit is contained in:
Florian Müllner 2019-01-31 14:15:58 +01:00 committed by Florian Müllner
parent 446183adee
commit 95224bd006

View File

@ -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));
}