Define classes with 'var' instead of 'const'

Any symbols (including class properties) that should be visible
outside the module it's defined in need to be defined as global.
For now gjs still allows the access for 'const', but get rid of
the warnings spill now by changing it.

https://bugzilla.gnome.org/show_bug.cgi?id=785084
This commit is contained in:
Florian Müllner
2017-07-18 19:41:25 +02:00
parent 9e32ba61fd
commit 2582d16ca7
109 changed files with 363 additions and 363 deletions

View File

@ -47,7 +47,7 @@
const Lang = imports.lang;
const Signals = imports.signals;
const Task = new Lang.Class({
var Task = new Lang.Class({
Name: 'Task',
_init: function(scope, handler) {
@ -68,7 +68,7 @@ const Task = new Lang.Class({
});
Signals.addSignalMethods(Task.prototype);
const Hold = new Lang.Class({
var Hold = new Lang.Class({
Name: 'Hold',
Extends: Task,
@ -110,7 +110,7 @@ const Hold = new Lang.Class({
});
Signals.addSignalMethods(Hold.prototype);
const Batch = new Lang.Class({
var Batch = new Lang.Class({
Name: 'Batch',
Extends: Task,
@ -185,7 +185,7 @@ const Batch = new Lang.Class({
});
Signals.addSignalMethods(Batch.prototype);
const ConcurrentBatch = new Lang.Class({
var ConcurrentBatch = new Lang.Class({
Name: 'ConcurrentBatch',
Extends: Batch,
@ -204,7 +204,7 @@ const ConcurrentBatch = new Lang.Class({
});
Signals.addSignalMethods(ConcurrentBatch.prototype);
const ConsecutiveBatch = new Lang.Class({
var ConsecutiveBatch = new Lang.Class({
Name: 'ConsecutiveBatch',
Extends: Batch,