[gnome-documents] Use 'var' for more classes that are exported



commit 920727cf80f041f86bd1d831ac30b5c986b8f011
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Dec 5 17:51:30 2017 +0100

    Use 'var' for more classes that are exported
    
    This avoids warnings with GJS 1.50.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=785568

 src/edit.js         |    2 +-
 src/password.js     |    2 +-
 src/places.js       |    2 +-
 src/presentation.js |    2 +-
 src/sharing.js      |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/edit.js b/src/edit.js
index 916da79..649698d 100644
--- a/src/edit.js
+++ b/src/edit.js
@@ -31,7 +31,7 @@ const Preview = imports.preview;
 
 const _BLANK_URI = "about:blank";
 
-const EditView = new Lang.Class({
+var EditView = new Lang.Class({
     Name: 'EditView',
     Extends: Preview.Preview,
 
diff --git a/src/password.js b/src/password.js
index 09be167..5a179be 100644
--- a/src/password.js
+++ b/src/password.js
@@ -26,7 +26,7 @@ const Application = imports.application;
 
 const Lang = imports.lang;
 
-const PasswordDialog = new Lang.Class({
+var PasswordDialog = new Lang.Class({
     Name: 'PasswordDialog',
     Extends: Gtk.Dialog,
 
diff --git a/src/places.js b/src/places.js
index 5023b80..220cd31 100644
--- a/src/places.js
+++ b/src/places.js
@@ -25,7 +25,7 @@ const Application = imports.application;
 
 const Lang = imports.lang;
 
-const PlacesDialog = new Lang.Class({
+var PlacesDialog = new Lang.Class({
     Name: 'PlacesDialog',
     Extends: Gtk.Dialog,
 
diff --git a/src/presentation.js b/src/presentation.js
index 20b3cec..af63dc2 100644
--- a/src/presentation.js
+++ b/src/presentation.js
@@ -111,7 +111,7 @@ var PresentationWindow = new Lang.Class({
     }
 });
 
-const PresentationOutputChooser = new Lang.Class({
+var PresentationOutputChooser = new Lang.Class({
     Name: 'PresentationOutputChooser',
     Extends: Gtk.Dialog,
     Signals: {
diff --git a/src/sharing.js b/src/sharing.js
index 56976a4..7f5d0f2 100644
--- a/src/sharing.js
+++ b/src/sharing.js
@@ -68,7 +68,7 @@ const DocumentUpdateType = {
     DELETE_SHARE_LINK: 4
 };
 
-const SharingDialog = new Lang.Class({
+var SharingDialog = new Lang.Class({
     Name: 'SharingDialog',
     Extends: Gtk.Dialog,
 


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