mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
07cc84f632
commit
ebf77748a8
81 changed files with 452 additions and 445 deletions
|
|
@ -66,7 +66,7 @@ var PopupBaseMenuItem = GObject.registerClass({
|
|||
},
|
||||
Signals: {
|
||||
'activate': { param_types: [Clutter.Event.$gtype] },
|
||||
}
|
||||
},
|
||||
}, class PopupBaseMenuItem extends St.BoxLayout {
|
||||
_init(params) {
|
||||
params = Params.parse(params, {
|
||||
|
|
@ -326,7 +326,7 @@ class Switch extends St.Bin {
|
|||
});
|
||||
|
||||
var PopupSwitchMenuItem = GObject.registerClass({
|
||||
Signals: { 'toggled': { param_types: [GObject.TYPE_BOOLEAN] }, },
|
||||
Signals: { 'toggled': { param_types: [GObject.TYPE_BOOLEAN] } },
|
||||
}, class PopupSwitchMenuItem extends PopupBaseMenuItem {
|
||||
_init(text, active, params) {
|
||||
super._init(params);
|
||||
|
|
@ -1032,12 +1032,12 @@ var PopupSubMenu = class extends PopupMenuBase {
|
|||
height: naturalHeight,
|
||||
duration: 250,
|
||||
mode: Clutter.AnimationMode.EASE_OUT_EXPO,
|
||||
onComplete: () => this.actor.set_height(-1)
|
||||
onComplete: () => this.actor.set_height(-1),
|
||||
});
|
||||
this._arrow.ease({
|
||||
rotation_angle_z: targetAngle,
|
||||
duration: 250,
|
||||
mode: Clutter.AnimationMode.EASE_OUT_EXPO
|
||||
mode: Clutter.AnimationMode.EASE_OUT_EXPO,
|
||||
});
|
||||
} else {
|
||||
this._arrow.rotation_angle_z = targetAngle;
|
||||
|
|
@ -1065,12 +1065,12 @@ var PopupSubMenu = class extends PopupMenuBase {
|
|||
onComplete: () => {
|
||||
this.actor.hide();
|
||||
this.actor.set_height(-1);
|
||||
}
|
||||
},
|
||||
});
|
||||
this._arrow.ease({
|
||||
rotation_angle_z: 0,
|
||||
duration: 250,
|
||||
mode: Clutter.AnimationMode.EASE_OUT_EXPO
|
||||
mode: Clutter.AnimationMode.EASE_OUT_EXPO,
|
||||
});
|
||||
} else {
|
||||
this._arrow.rotation_angle_z = 0;
|
||||
|
|
@ -1257,7 +1257,7 @@ var PopupMenuManager = class {
|
|||
openStateChangeId: menu.connect('open-state-changed', this._onMenuOpenState.bind(this)),
|
||||
destroyId: menu.connect('destroy', this._onMenuDestroy.bind(this)),
|
||||
enterId: 0,
|
||||
focusInId: 0
|
||||
focusInId: 0,
|
||||
};
|
||||
|
||||
let source = menu.sourceActor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue