[sushi/wip/cosimoc/no-clutter: 67/67] Use var for exported symbols where appropriate



commit bd4a62626049e56c9fbb86ec100632aa3f081bad
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Apr 30 08:14:18 2018 -0700

    Use var for exported symbols where appropriate
    
    Avoid GJS warnings.

 src/js/ui/application.js      |    2 +-
 src/js/ui/fallbackRenderer.js |    2 +-
 src/js/ui/mainWindow.js       |    2 +-
 src/js/ui/spinnerBox.js       |    2 +-
 src/js/util/constants.js      |   10 +++++-----
 src/js/util/path.js.in        |    2 +-
 src/js/util/totemMimeTypes.js |    4 ++--
 7 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/js/ui/application.js b/src/js/ui/application.js
index 0c54749..0594326 100644
--- a/src/js/ui/application.js
+++ b/src/js/ui/application.js
@@ -46,7 +46,7 @@ const SushiIface = '<node> \
 </interface> \
 </node>';
 
-const Application = new Lang.Class({
+var Application = new Lang.Class({
     Name: 'Application',
     Extends: Gtk.Application,
 
diff --git a/src/js/ui/fallbackRenderer.js b/src/js/ui/fallbackRenderer.js
index 3e6829d..cdcc74a 100644
--- a/src/js/ui/fallbackRenderer.js
+++ b/src/js/ui/fallbackRenderer.js
@@ -32,7 +32,7 @@ const Gettext = imports.gettext.domain('sushi');
 const _ = Gettext.gettext;
 const Lang = imports.lang;
 
-const FallbackRenderer = new Lang.Class({
+var FallbackRenderer = new Lang.Class({
     Name: 'FallbackRenderer',
 
     _init : function() {
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 1c25fde..1ca4f53 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -66,7 +66,7 @@ const Embed = new Lang.Class({
     }
 });
 
-const MainWindow = new Lang.Class({
+var MainWindow = new Lang.Class({
     Name: 'MainWindow',
     Extends: Gtk.Window,
 
diff --git a/src/js/ui/spinnerBox.js b/src/js/ui/spinnerBox.js
index f0c12f8..0db678e 100644
--- a/src/js/ui/spinnerBox.js
+++ b/src/js/ui/spinnerBox.js
@@ -31,7 +31,7 @@ const Lang = imports.lang;
 
 let SPINNER_SIZE = 48;
 
-const SpinnerBox = new Lang.Class({
+var SpinnerBox = new Lang.Class({
     Name: 'SpinnerBox',
 
     _init : function(args) {
diff --git a/src/js/util/constants.js b/src/js/util/constants.js
index 0bd7401..5faf38e 100644
--- a/src/js/util/constants.js
+++ b/src/js/util/constants.js
@@ -23,8 +23,8 @@
  *
  */
 
-let VIEW_MIN = 400;
-let VIEW_BACKGROUND_OPACITY = 220;
-let VIEW_MAX_W = 800;
-let VIEW_MAX_H = 600;
-let TOOLBAR_SPACING = 32;
+var VIEW_MIN = 400;
+var VIEW_BACKGROUND_OPACITY = 220;
+var VIEW_MAX_W = 800;
+var VIEW_MAX_H = 600;
+var TOOLBAR_SPACING = 32;
diff --git a/src/js/util/path.js.in b/src/js/util/path.js.in
index 12aa933..00c5c53 100644
--- a/src/js/util/path.js.in
+++ b/src/js/util/path.js.in
@@ -23,4 +23,4 @@
  *
  */
 
-let LOCALE_DIR = '@localedir@';
+var LOCALE_DIR = '@localedir@';
diff --git a/src/js/util/totemMimeTypes.js b/src/js/util/totemMimeTypes.js
index dcbfb94..7098d8a 100644
--- a/src/js/util/totemMimeTypes.js
+++ b/src/js/util/totemMimeTypes.js
@@ -1,6 +1,6 @@
 /* generated with mime-type-imports.sh in the totem module, don't edit or
    commit in the sushi module without filing a bug against totem */
-let audioTypes = [
+var audioTypes = [
     "audio/3gpp",
     "audio/ac3",
     "audio/AMR",
@@ -48,7 +48,7 @@ let audioTypes = [
     "application/x-flac",
 ];
 
-let videoTypes = [
+var videoTypes = [
     "application/mxf",
     "application/ogg",
     "application/ram",


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