[gnome-shell] sessionMode: Fix left-over variable in _loadMode()



commit 46bac3069e9471dee8d92a86cc2170ca7d3276bb
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Dec 6 21:25:15 2013 +0100

    sessionMode: Fix left-over variable in _loadMode()
    
    Commit da4238ec681c7ca dropped a variable, but didn't replace all
    consumers.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720017

 js/ui/sessionMode.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index 510adc5..9670c23 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -120,10 +120,10 @@ function _loadMode(file, info) {
 
     _modes[modeName] = {};
     let propBlacklist = ['unlockDialog'];
-    for (let prop in loadedData[DEFAULT_MODE]) {
+    for (let prop in _modes[DEFAULT_MODE]) {
         if (newMode[prop] !== undefined &&
             propBlacklist.indexOf(prop) == -1)
-            loadedData[modeName][prop] = newMode[prop];
+            _modes[modeName][prop] = newMode[prop];
     }
     _modes[modeName]['isPrimary'] = true;
 }


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