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
@ -10,8 +10,8 @@ var PieTimer = GObject.registerClass({
|
||||
'angle': GObject.ParamSpec.double(
|
||||
'angle', 'angle', 'angle',
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 2 * Math.PI, 0)
|
||||
}
|
||||
0, 2 * Math.PI, 0),
|
||||
},
|
||||
}, class PieTimer extends St.DrawingArea {
|
||||
_init() {
|
||||
this._angle = 0;
|
||||
@ -20,7 +20,7 @@ var PieTimer = GObject.registerClass({
|
||||
opacity: 0,
|
||||
visible: false,
|
||||
can_focus: false,
|
||||
reactive: false
|
||||
reactive: false,
|
||||
});
|
||||
|
||||
this.set_pivot_point(0.5, 0.5);
|
||||
@ -84,13 +84,13 @@ var PieTimer = GObject.registerClass({
|
||||
this.ease({
|
||||
opacity: 255,
|
||||
duration: duration / 4,
|
||||
mode: Clutter.AnimationMode.EASE_IN_QUAD
|
||||
mode: Clutter.AnimationMode.EASE_IN_QUAD,
|
||||
});
|
||||
|
||||
this.ease_property('angle', 2 * Math.PI, {
|
||||
duration,
|
||||
mode: Clutter.AnimationMode.LINEAR,
|
||||
onComplete: this._onTransitionComplete.bind(this)
|
||||
onComplete: this._onTransitionComplete.bind(this),
|
||||
});
|
||||
}
|
||||
|
||||
@ -101,7 +101,7 @@ var PieTimer = GObject.registerClass({
|
||||
opacity: 0,
|
||||
duration: SUCCESS_ZOOM_OUT_DURATION,
|
||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||
onStopped: () => this.destroy()
|
||||
onStopped: () => this.destroy(),
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user