cleanup: Require "dangling" commas

Since ES5, trailing commas in arrays and object literals are valid.
We generally haven't used them so far, but they are actually a good
idea, as they make additions and removals in diffs much cleaner.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:
Florian Müllner
2019-08-20 23:43:54 +02:00
committed by Georges Basile Stavracas Neto
parent 07cc84f632
commit ebf77748a8
81 changed files with 452 additions and 445 deletions

View File

@ -30,7 +30,7 @@ function primaryModifier(mask) {
}
var SwitcherPopup = GObject.registerClass({
GTypeFlags: GObject.TypeFlags.ABSTRACT
GTypeFlags: GObject.TypeFlags.ABSTRACT,
}, class SwitcherPopup extends St.Widget {
_init(items) {
super._init({ style_class: 'switcher-popup',
@ -286,7 +286,7 @@ var SwitcherPopup = GObject.registerClass({
opacity: 0,
duration: POPUP_FADE_OUT_TIME,
mode: Clutter.Animation.EASE_OUT_QUAD,
onComplete: () => this.destroy()
onComplete: () => this.destroy(),
});
} else {
this.destroy();
@ -464,7 +464,7 @@ var SwitcherList = GObject.registerClass({
if (this._highlighted == 0)
this._scrollableLeft = false;
this.queue_relayout();
}
},
});
}
@ -487,7 +487,7 @@ var SwitcherList = GObject.registerClass({
if (this._highlighted == this._items.length - 1)
this._scrollableRight = false;
this.queue_relayout();
}
},
});
}