Skip to content

Commit 1e46e47

Browse files
committed
Define externally accessible classes and constants with 'var'.
Avoid warnings following the updated of Gjs to mozjs-52i (GNOME Shell 3.26), as per ES6 standard.
1 parent 979b443 commit 1e46e47

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

appIcons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const DOMINANT_COLOR_ICON_SIZE = 64;
8888
* - Update menu if open on windows change
8989
* - Unity7-esk backlit item emulation
9090
*/
91-
const MyAppIcon = new Lang.Class({
91+
var MyAppIcon = new Lang.Class({
9292
Name: 'DashToDock.AppIcon',
9393
Extends: AppDisplay.AppIcon,
9494

dash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const baseIconSizes = [16, 22, 24, 32, 48, 64, 96, 128];
175175
* - sync minimization application target position.
176176
* - keep running apps ordered.
177177
*/
178-
const MyDash = new Lang.Class({
178+
var MyDash = new Lang.Class({
179179
Name: 'DashToDock.MyDash',
180180

181181
_init: function(settings, monitorIndex) {

docking.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ const WorkspaceIsolation = new Lang.Class({
16321632
});
16331633

16341634

1635-
const DockManager = new Lang.Class({
1635+
var DockManager = new Lang.Class({
16361636
Name: 'DashToDock.DockManager',
16371637

16381638
_init: function() {

intellihide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const handledWindowTypes = [
4545
* Intallihide object: emit 'status-changed' signal when the overlap of windows
4646
* with the provided targetBoxClutter.ActorBox changes;
4747
*/
48-
const Intellihide = new Lang.Class({
48+
var Intellihide = new Lang.Class({
4949
Name: 'DashToDock.Intellihide',
5050

5151
_init: function(settings, monitorIndex) {

theming.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Utils = Me.imports.utils;
2828
/**
2929
* Manage theme customization and custom theme support
3030
*/
31-
const ThemeManager = new Lang.Class({
31+
var ThemeManager = new Lang.Class({
3232
Name: 'DashToDock.ThemeManager',
3333

3434
_init: function(settings, actor, dash) {

utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const BasicHandler = new Lang.Class({
6464
/**
6565
* Manage global signals
6666
*/
67-
const GlobalSignalsHandler = new Lang.Class({
67+
var GlobalSignalsHandler = new Lang.Class({
6868
Name: 'DashToDock.GlobalSignalHandler',
6969
Extends: BasicHandler,
7070

@@ -85,7 +85,7 @@ const GlobalSignalsHandler = new Lang.Class({
8585
/**
8686
* Color manipulation utilities
8787
*/
88-
const ColorUtils = {
88+
var ColorUtils = {
8989

9090
// Darken or brigthen color by a fraction dlum
9191
// Each rgb value is modified by the same fraction.
@@ -184,7 +184,7 @@ const ColorUtils = {
184184
* Manage function injection: both instances and prototype can be overridden
185185
* and restored
186186
*/
187-
const InjectionsHandler = new Lang.Class({
187+
var InjectionsHandler = new Lang.Class({
188188
Name: 'DashToDock.InjectionsHandler',
189189
Extends: BasicHandler,
190190

0 commit comments

Comments
 (0)