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:
@ -14,7 +14,7 @@ const Tweener = imports.ui.tweener;
|
||||
const FROZEN_WINDOW_BRIGHTNESS = -0.3
|
||||
const DIALOG_TRANSITION_TIME = 0.15
|
||||
|
||||
const CloseDialog = new Lang.Class({
|
||||
var CloseDialog = new Lang.Class({
|
||||
Name: 'CloseDialog',
|
||||
Extends: GObject.Object,
|
||||
Implements: [ Meta.CloseDialog ],
|
||||
|
Reference in New Issue
Block a user