[polari] Define externally accessible constants with 'var' instead of 'const'



commit d8a69c3785edf0b63a5e1a131b5811970b4bb9c2
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jul 19 00:46:16 2017 +0200

    Define externally accessible constants with 'var' instead of 'const'
    
    Just as we did with classes, define other constants that are used
    from other modules with 'var' to cut down on warnings.

 src/chatView.js  |    2 +-
 src/ircParser.js |    2 +-
 src/main.js      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 40ce08a..dbeb176 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -17,7 +17,7 @@ const Utils = imports.utils;
 const UserTracker = imports.userTracker;
 const UserList = imports.userList;
 
-const MAX_NICK_CHARS = 8;
+var MAX_NICK_CHARS = 8;
 const IGNORE_STATUS_TIME = 5;
 
 const SCROLL_TIMEOUT = 100; // ms
diff --git a/src/ircParser.js b/src/ircParser.js
index ff757e0..f1313ff 100644
--- a/src/ircParser.js
+++ b/src/ircParser.js
@@ -10,7 +10,7 @@ const Utils = imports.utils;
 
 const N_ = s => s;
 
-const knownCommands = {
+var knownCommands = {
     /* commands that would be nice to support: */
     /*
     AWAY: N_("/AWAY [<message>] — sets or unsets away message"),
diff --git a/src/main.js b/src/main.js
index ed32a44..d23beda 100755
--- a/src/main.js
+++ b/src/main.js
@@ -18,7 +18,7 @@ pkg.requireSymbol('Gtk', '3.0', 'ScrolledWindow.propagate_natural_width');
 const Application = imports.application;
 const GLib = imports.gi.GLib;
 
-const LOG_DOMAIN = 'Polari';
+var LOG_DOMAIN = 'Polari';
 
 function _makeLogFunction(level) {
     return message => {


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