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

@ -58,7 +58,7 @@ function getWindows(workspace) {
}).filter((w, i, a) => !w.skip_taskbar && a.indexOf(w) == i);
}
const AppSwitcherPopup = new Lang.Class({
var AppSwitcherPopup = new Lang.Class({
Name: 'AppSwitcherPopup',
Extends: SwitcherPopup.SwitcherPopup,
@ -366,7 +366,7 @@ const AppSwitcherPopup = new Lang.Class({
}
});
const CyclerHighlight = new Lang.Class({
var CyclerHighlight = new Lang.Class({
Name: 'CyclerHighlight',
_init: function() {
@ -427,7 +427,7 @@ const CyclerHighlight = new Lang.Class({
}
});
const CyclerPopup = new Lang.Class({
var CyclerPopup = new Lang.Class({
Name: 'CyclerPopup',
Extends: SwitcherPopup.SwitcherPopup,
Abstract: true,
@ -488,7 +488,7 @@ const CyclerPopup = new Lang.Class({
});
const GroupCyclerPopup = new Lang.Class({
var GroupCyclerPopup = new Lang.Class({
Name: 'GroupCyclerPopup',
Extends: CyclerPopup,
@ -509,7 +509,7 @@ const GroupCyclerPopup = new Lang.Class({
}
});
const WindowSwitcherPopup = new Lang.Class({
var WindowSwitcherPopup = new Lang.Class({
Name: 'WindowSwitcherPopup',
Extends: SwitcherPopup.SwitcherPopup,
@ -556,7 +556,7 @@ const WindowSwitcherPopup = new Lang.Class({
}
});
const WindowCyclerPopup = new Lang.Class({
var WindowCyclerPopup = new Lang.Class({
Name: 'WindowCyclerPopup',
Extends: CyclerPopup,
@ -582,7 +582,7 @@ const WindowCyclerPopup = new Lang.Class({
}
});
const AppIcon = new Lang.Class({
var AppIcon = new Lang.Class({
Name: 'AppIcon',
_init: function(app) {
@ -603,7 +603,7 @@ const AppIcon = new Lang.Class({
}
});
const AppSwitcher = new Lang.Class({
var AppSwitcher = new Lang.Class({
Name: 'AppSwitcher',
Extends: SwitcherPopup.SwitcherList,
@ -777,7 +777,7 @@ const AppSwitcher = new Lang.Class({
}
});
const ThumbnailList = new Lang.Class({
var ThumbnailList = new Lang.Class({
Name: 'ThumbnailList',
Extends: SwitcherPopup.SwitcherList,
@ -845,7 +845,7 @@ const ThumbnailList = new Lang.Class({
}
});
const WindowIcon = new Lang.Class({
var WindowIcon = new Lang.Class({
Name: 'WindowIcon',
_init: function(window, mode) {
@ -902,7 +902,7 @@ const WindowIcon = new Lang.Class({
}
});
const WindowList = new Lang.Class({
var WindowList = new Lang.Class({
Name: 'WindowList',
Extends: SwitcherPopup.SwitcherList,