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:

committed by
Georges Basile Stavracas Neto

parent
07cc84f632
commit
ebf77748a8
@ -23,7 +23,7 @@ const UP = 0;
|
||||
const DOWN = 1;
|
||||
|
||||
var PadChooser = GObject.registerClass({
|
||||
Signals: { 'pad-selected': { param_types: [Clutter.InputDevice.$gtype] } }
|
||||
Signals: { 'pad-selected': { param_types: [Clutter.InputDevice.$gtype] } },
|
||||
}, class PadChooser extends St.Button {
|
||||
_init(device, groupDevices) {
|
||||
super._init({
|
||||
@ -89,7 +89,7 @@ var PadChooser = GObject.registerClass({
|
||||
});
|
||||
|
||||
var KeybindingEntry = GObject.registerClass({
|
||||
Signals: { 'keybinding-edited': {} }
|
||||
Signals: { 'keybinding-edited': {} },
|
||||
}, class KeybindingEntry extends St.Entry {
|
||||
_init() {
|
||||
super._init({ hint_text: _("New shortcut…"), style: 'width: 10em' });
|
||||
@ -110,7 +110,7 @@ var KeybindingEntry = GObject.registerClass({
|
||||
});
|
||||
|
||||
var ActionComboBox = GObject.registerClass({
|
||||
Signals: { 'action-selected': { param_types: [GObject.TYPE_INT] } }
|
||||
Signals: { 'action-selected': { param_types: [GObject.TYPE_INT] } },
|
||||
}, class ActionComboBox extends St.Button {
|
||||
_init() {
|
||||
super._init({ style_class: 'button' });
|
||||
@ -192,7 +192,7 @@ var ActionComboBox = GObject.registerClass({
|
||||
});
|
||||
|
||||
var ActionEditor = GObject.registerClass({
|
||||
Signals: { 'done': {} }
|
||||
Signals: { 'done': {} },
|
||||
}, class ActionEditor extends St.Widget {
|
||||
_init() {
|
||||
let boxLayout = new Clutter.BoxLayout({ orientation: Clutter.Orientation.HORIZONTAL,
|
||||
@ -291,7 +291,7 @@ var PadDiagram = GObject.registerClass({
|
||||
'Editor actor',
|
||||
GObject.ParamFlags.READWRITE |
|
||||
GObject.ParamFlags.CONSTRUCT_ONLY,
|
||||
Clutter.Actor.$gtype)
|
||||
Clutter.Actor.$gtype),
|
||||
},
|
||||
}, class PadDiagram extends St.DrawingArea {
|
||||
_init(params) {
|
||||
@ -620,8 +620,8 @@ var PadDiagram = GObject.registerClass({
|
||||
var PadOsd = GObject.registerClass({
|
||||
Signals: {
|
||||
'pad-selected': { param_types: [Clutter.InputDevice.$gtype] },
|
||||
'closed': {}
|
||||
}
|
||||
'closed': {},
|
||||
},
|
||||
}, class PadOsd extends St.BoxLayout {
|
||||
_init(padDevice, settings, imagePath, editionMode, monitorIndex) {
|
||||
super._init({
|
||||
@ -629,7 +629,7 @@ var PadOsd = GObject.registerClass({
|
||||
vertical: true,
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
reactive: true
|
||||
reactive: true,
|
||||
});
|
||||
|
||||
this.padDevice = padDevice;
|
||||
|
Reference in New Issue
Block a user