[gnome-maps] utils: Export debug variable using 'var'



commit 721cd617eed46596cf65515af0e31996ffb5fec6
Author: Marcus Lundblad <ml update uu se>
Date:   Tue Nov 7 22:11:23 2017 +0100

    utils: Export debug variable using 'var'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782861

 src/utils.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/utils.js b/src/utils.js
index 4c68f14..30320e4 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -39,9 +39,10 @@ const IMPERIAL_LOCALES = ['unm_US', 'es_US', 'es_PR', 'en_US', 'yi_US'];
 const ACCENTS_REGEX = /[\u0300-\u036F]/g;
 
 let debugInit = false;
-let debugEnabled = false;
 let measurementSystem = null;
 
+var debugEnabled = false;
+
 function debug(msg) {
     if (!debugInit) {
         let env = GLib.getenv('MAPS_DEBUG');


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