[gnome-documents] Use 'var' for more classes that are exported
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] Use 'var' for more classes that are exported
- Date: Mon, 7 Aug 2017 02:38:20 +0000 (UTC)
commit 1b37dcb4e68ff84c473d462825fc09f252ceea53
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Sun Aug 6 21:01:59 2017 -0400
Use 'var' for more classes that are exported
This avoids warnings with the new GJS.
https://bugzilla.gnome.org/show_bug.cgi?id=785568
src/notifications.js | 4 ++--
src/presentation.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/notifications.js b/src/notifications.js
index e2a10dc..f78b62b 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -33,7 +33,7 @@ const Mainloop = imports.mainloop;
const DELETE_TIMEOUT = 10; // seconds
-const DeleteNotification = new Lang.Class({
+var DeleteNotification = new Lang.Class({
Name: 'DeleteNotification',
_init: function(docs) {
@@ -109,7 +109,7 @@ const DeleteNotification = new Lang.Class({
}
});
-const PrintNotification = new Lang.Class({
+var PrintNotification = new Lang.Class({
Name: 'PrintNotification',
_init: function(printOp, doc) {
diff --git a/src/presentation.js b/src/presentation.js
index bc6c8c8..20b3cec 100644
--- a/src/presentation.js
+++ b/src/presentation.js
@@ -29,7 +29,7 @@ const Utils = imports.utils;
const Application = imports.application;
-const PresentationWindow = new Lang.Class({
+var PresentationWindow = new Lang.Class({
Name: 'PresentationWindow',
Extends: Gtk.Window,
@@ -229,7 +229,7 @@ const PresentationOutputChooser = new Lang.Class({
}
});
-const PresentationOutputs = new Lang.Class({
+var PresentationOutputs = new Lang.Class({
Name: 'PresentationOutputs',
_init: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]