[gnome-documents] notifications, query: Use 'var' for exported constant



commit 112733c646888511927433ae08f70a0ba5482831
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Dec 14 14:36:49 2017 +0100

    notifications, query: Use 'var' for exported constant
    
    This avoids warnings with GJS 1.50.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=785568

 src/notifications.js |    2 +-
 src/query.js         |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/notifications.js b/src/notifications.js
index f78b62b..6e542b0 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -31,7 +31,7 @@ const WindowMode = imports.windowMode;
 const Lang = imports.lang;
 const Mainloop = imports.mainloop;
 
-const DELETE_TIMEOUT = 10; // seconds
+var DELETE_TIMEOUT = 10; // seconds
 
 var DeleteNotification = new Lang.Class({
     Name: 'DeleteNotification',
diff --git a/src/query.js b/src/query.js
index 744527b..1c156f1 100644
--- a/src/query.js
+++ b/src/query.js
@@ -49,8 +49,8 @@ var QueryFlags = {
     SEARCH: 1 << 3
 };
 
-const LOCAL_BOOKS_COLLECTIONS_IDENTIFIER = 'gb:collection:local:';
-const LOCAL_DOCUMENTS_COLLECTIONS_IDENTIFIER = 'gd:collection:local:';
+var LOCAL_BOOKS_COLLECTIONS_IDENTIFIER = 'gb:collection:local:';
+var LOCAL_DOCUMENTS_COLLECTIONS_IDENTIFIER = 'gd:collection:local:';
 
 var QueryBuilder = new Lang.Class({
     Name: 'QueryBuilder',


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