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

@ -33,7 +33,7 @@ function getAppFromSource(source) {
// A container like StBin, but taking the child's scale into account
// when requesting a size
const DashItemContainer = new Lang.Class({
var DashItemContainer = new Lang.Class({
Name: 'DashItemContainer',
Extends: St.Widget,
@ -235,7 +235,7 @@ const DashItemContainer = new Lang.Class({
}
});
const ShowAppsIcon = new Lang.Class({
var ShowAppsIcon = new Lang.Class({
Name: 'ShowAppsIcon',
Extends: DashItemContainer,
@ -315,7 +315,7 @@ const ShowAppsIcon = new Lang.Class({
}
});
const DragPlaceholderItem = new Lang.Class({
var DragPlaceholderItem = new Lang.Class({
Name: 'DragPlaceholderItem',
Extends: DashItemContainer,
@ -325,7 +325,7 @@ const DragPlaceholderItem = new Lang.Class({
}
});
const EmptyDropTargetItem = new Lang.Class({
var EmptyDropTargetItem = new Lang.Class({
Name: 'EmptyDropTargetItem',
Extends: DashItemContainer,
@ -335,7 +335,7 @@ const EmptyDropTargetItem = new Lang.Class({
}
});
const DashActor = new Lang.Class({
var DashActor = new Lang.Class({
Name: 'DashActor',
Extends: St.Widget,
@ -387,7 +387,7 @@ const DashActor = new Lang.Class({
const baseIconSizes = [ 16, 22, 24, 32, 48, 64 ];
const Dash = new Lang.Class({
var Dash = new Lang.Class({
Name: 'Dash',
_init : function() {