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
@ -18,7 +18,7 @@ var INDICATORS_ANIMATION_MAX_TIME_OUT =
|
||||
var ANIMATION_DELAY = 100;
|
||||
|
||||
var PageIndicators = GObject.registerClass({
|
||||
Signals: { 'page-activated': { param_types: [GObject.TYPE_INT] } }
|
||||
Signals: { 'page-activated': { param_types: [GObject.TYPE_INT] } },
|
||||
}, class PageIndicators extends St.BoxLayout {
|
||||
_init(orientation = Clutter.Orientation.VERTICAL) {
|
||||
let vertical = orientation == Clutter.Orientation.VERTICAL;
|
||||
@ -29,7 +29,7 @@ var PageIndicators = GObject.registerClass({
|
||||
x_align: vertical ? Clutter.ActorAlign.END : Clutter.ActorAlign.CENTER,
|
||||
y_align: vertical ? Clutter.ActorAlign.CENTER : Clutter.ActorAlign.END,
|
||||
reactive: true,
|
||||
clip_to_allocation: true
|
||||
clip_to_allocation: true,
|
||||
});
|
||||
this._nPages = 0;
|
||||
this._currentPage = undefined;
|
||||
@ -154,7 +154,7 @@ class AnimatedPageIndicators extends PageIndicators {
|
||||
translation_x: isAnimationIn ? 0 : offset,
|
||||
duration: baseTime + delay * i,
|
||||
mode: Clutter.AnimationMode.EASE_IN_OUT_QUAD,
|
||||
delay: isAnimationIn ? ANIMATION_DELAY : 0
|
||||
delay: isAnimationIn ? ANIMATION_DELAY : 0,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user