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

@ -83,7 +83,7 @@ function _unpremultiply(color) {
* this menu also handles startup notification for it. So when we
* have an active startup notification, we switch modes to display that.
*/
const AppMenuButton = new Lang.Class({
var AppMenuButton = new Lang.Class({
Name: 'AppMenuButton',
Extends: PanelMenu.Button,
@ -399,7 +399,7 @@ const AppMenuButton = new Lang.Class({
Signals.addSignalMethods(AppMenuButton.prototype);
const ActivitiesButton = new Lang.Class({
var ActivitiesButton = new Lang.Class({
Name: 'ActivitiesButton',
Extends: PanelMenu.Button,
@ -487,7 +487,7 @@ const ActivitiesButton = new Lang.Class({
}
});
const PanelCorner = new Lang.Class({
var PanelCorner = new Lang.Class({
Name: 'PanelCorner',
_init: function(side) {
@ -654,7 +654,7 @@ const PanelCorner = new Lang.Class({
}
});
const AggregateLayout = new Lang.Class({
var AggregateLayout = new Lang.Class({
Name: 'AggregateLayout',
Extends: Clutter.BoxLayout,
@ -687,7 +687,7 @@ const AggregateLayout = new Lang.Class({
}
});
const AggregateMenu = new Lang.Class({
var AggregateMenu = new Lang.Class({
Name: 'AggregateMenu',
Extends: PanelMenu.Button,
@ -767,7 +767,7 @@ const PANEL_ITEM_IMPLEMENTATIONS = {
'keyboard': imports.ui.status.keyboard.InputSourceIndicator,
};
const Panel = new Lang.Class({
var Panel = new Lang.Class({
Name: 'Panel',
_init : function() {