sessionMode: Fix listModes()

Commit da4238ec68 just broke that function completely by
calling array methods on objects and other funny stuff. Fix it.

https://bugzilla.gnome.org/show_bug.cgi?id=720017
This commit is contained in:
Florian Müllner 2013-12-06 21:29:37 +01:00
parent c9f2a0f694
commit 4d9a16f33b

View File

@ -134,7 +134,7 @@ function _loadModes() {
function listModes() {
_loadModes();
modes.forEach(function() {
Mainloop.idle_add(function() {
let names = Object.getOwnPropertyNames(_modes);
for (let i = 0; i < names.length; i++)
if (_modes[names[i]].isPrimary)