mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
9e32ba61fd
commit
2582d16ca7
109 changed files with 363 additions and 363 deletions
|
|
@ -21,7 +21,7 @@ const SortGroup = {
|
|||
BOTTOM: 2
|
||||
};
|
||||
|
||||
const CtrlAltTabManager = new Lang.Class({
|
||||
var CtrlAltTabManager = new Lang.Class({
|
||||
Name: 'CtrlAltTabManager',
|
||||
|
||||
_init: function() {
|
||||
|
|
@ -136,7 +136,7 @@ const CtrlAltTabManager = new Lang.Class({
|
|||
}
|
||||
});
|
||||
|
||||
const CtrlAltTabPopup = new Lang.Class({
|
||||
var CtrlAltTabPopup = new Lang.Class({
|
||||
Name: 'CtrlAltTabPopup',
|
||||
Extends: SwitcherPopup.SwitcherPopup,
|
||||
|
||||
|
|
@ -167,7 +167,7 @@ const CtrlAltTabPopup = new Lang.Class({
|
|||
},
|
||||
});
|
||||
|
||||
const CtrlAltTabSwitcher = new Lang.Class({
|
||||
var CtrlAltTabSwitcher = new Lang.Class({
|
||||
Name: 'CtrlAltTabSwitcher',
|
||||
Extends: SwitcherPopup.SwitcherList,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue