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
@ -13,7 +13,7 @@ var ALIVE_TIMEOUT = 5000;
|
||||
var CloseDialog = GObject.registerClass({
|
||||
Implements: [Meta.CloseDialog],
|
||||
Properties: {
|
||||
'window': GObject.ParamSpec.override('window', Meta.CloseDialog)
|
||||
'window': GObject.ParamSpec.override('window', Meta.CloseDialog),
|
||||
},
|
||||
}, class CloseDialog extends GObject.Object {
|
||||
_init(window) {
|
||||
@ -170,7 +170,7 @@ var CloseDialog = GObject.registerClass({
|
||||
scale_y: 1,
|
||||
mode: Clutter.AnimationMode.LINEAR,
|
||||
duration: DIALOG_TRANSITION_TIME,
|
||||
onComplete: this._onFocusChanged.bind(this)
|
||||
onComplete: this._onFocusChanged.bind(this),
|
||||
});
|
||||
}
|
||||
|
||||
@ -197,7 +197,7 @@ var CloseDialog = GObject.registerClass({
|
||||
scale_y: 0,
|
||||
mode: Clutter.AnimationMode.LINEAR,
|
||||
duration: DIALOG_TRANSITION_TIME,
|
||||
onComplete: () => dialog.destroy()
|
||||
onComplete: () => dialog.destroy(),
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user