[gnome-maps] osmTypes: Export global constant with 'var'



commit ef88ee5b09da4130f6c6d6a14d96bdc6ad8a76f0
Author: Marcus Lundblad <ml update uu se>
Date:   Tue Nov 7 22:14:40 2017 +0100

    osmTypes: Export global constant with 'var'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782861

 src/osmTypes.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/osmTypes.js b/src/osmTypes.js
index b3c788a..53ca49c 100644
--- a/src/osmTypes.js
+++ b/src/osmTypes.js
@@ -28,13 +28,13 @@ const Utils = imports.utils;
 const _RECENT_TYPES_STORE_FILE = 'maps-recent-types.json';
 const _NUM_RECENT_TYPES = 10;
 
-/* Lists the OSM tags we base our notion of location types on */
-const OSM_TYPE_TAGS = ['aeroway', 'amenity', 'leisure', 'office', 'place', 'shop', 'tourism' ];
-
 const _file = Gio.file_new_for_uri('resource://org/gnome/Maps/osm-types.json');
 const [_status, _buffer] = _file.load_contents(null);
 const OSM_TYPE_MAP = JSON.parse(_buffer);
 
+/* Lists the OSM tags we base our notion of location types on */
+var OSM_TYPE_TAGS = ['aeroway', 'amenity', 'leisure', 'office', 'place', 'shop', 'tourism' ];
+
 /* Sort function comparing two type values accoring to the locale-specific
  * comparison of the type title */
 function _sortType(t1, t2) {


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