[sushi] Use var for exported JS symbols



commit 99083aa9f700b694a71bc4719c3bd346cbe366f7
Author: Cosimo Cecchi <cosimo endlessm com>
Date:   Thu Jul 26 10:30:12 2018 -0700

    Use var for exported JS symbols
    
    Or we will trigger warnings with new versions of GJS.

 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/ui/utils.js            |  2 +-
 src/js/util/constants.js      | 14 +++++++-------
 src/js/util/path.js.in        |  2 +-
 src/js/util/totemMimeTypes.js |  4 ++--
 8 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/js/ui/application.js b/src/js/ui/application.js
index 42bcc3c..c54e440 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 20e2aa5..57243a3 100644
--- a/src/js/ui/fallbackRenderer.js
+++ b/src/js/ui/fallbackRenderer.js
@@ -35,7 +35,7 @@ const Lang = imports.lang;
 const Constants = imports.util.constants;
 const Utils = imports.ui.utils;
 
-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 f4a5108..c64f2f6 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -44,7 +44,7 @@ const SpinnerBox = imports.ui.spinnerBox;
 const Tweener = imports.ui.tweener;
 const Utils = imports.ui.utils;
 
-const MainWindow = new Lang.Class({
+var MainWindow = new Lang.Class({
     Name: 'MainWindow',
 
     _init : function(args) {
diff --git a/src/js/ui/spinnerBox.js b/src/js/ui/spinnerBox.js
index a7bec84..3aa95b7 100644
--- a/src/js/ui/spinnerBox.js
+++ b/src/js/ui/spinnerBox.js
@@ -35,7 +35,7 @@ const Mainloop = imports.mainloop;
 let SPINNER_SIZE = 48;
 let TIMEOUT = 500;
 
-const SpinnerBox = new Lang.Class({
+var SpinnerBox = new Lang.Class({
     Name: 'SpinnerBox',
 
     _init : function(args) {
diff --git a/src/js/ui/utils.js b/src/js/ui/utils.js
index c63facb..0e5efdf 100644
--- a/src/js/ui/utils.js
+++ b/src/js/ui/utils.js
@@ -30,7 +30,7 @@ const Lang = imports.lang;
 
 const Constants = imports.util.constants;
 
-let slowDownFactor = 0;
+var slowDownFactor = 0;
 
 function setSlowDownFactor(factor) {
     slowDownFactor = factor;
diff --git a/src/js/util/constants.js b/src/js/util/constants.js
index d6dcf14..97e9192 100644
--- a/src/js/util/constants.js
+++ b/src/js/util/constants.js
@@ -23,10 +23,10 @@
  *
  */
 
-let VIEW_MIN = 400;
-let VIEW_BACKGROUND_OPACITY = 220;
-let VIEW_PADDING_Y = 28;
-let VIEW_PADDING_X = 2;
-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_PADDING_Y = 28;
+var VIEW_PADDING_X = 2;
+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]