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
@ -49,13 +49,13 @@ var WindowClone = GObject.registerClass({
|
||||
'drag-cancelled': {},
|
||||
'drag-end': {},
|
||||
'selected': { param_types: [GObject.TYPE_UINT] },
|
||||
}
|
||||
},
|
||||
}, class WindowClone extends Clutter.Actor {
|
||||
_init(realWindow) {
|
||||
let clone = new Clutter.Clone({ source: realWindow });
|
||||
super._init({
|
||||
layout_manager: new PrimaryActorLayout(clone),
|
||||
reactive: true
|
||||
reactive: true,
|
||||
});
|
||||
this._delegate = this;
|
||||
|
||||
@ -237,7 +237,7 @@ var ThumbnailState = {
|
||||
ANIMATING_OUT: 4,
|
||||
ANIMATED_OUT: 5,
|
||||
COLLAPSING: 6,
|
||||
DESTROYED: 7
|
||||
DESTROYED: 7,
|
||||
};
|
||||
|
||||
/**
|
||||
@ -253,12 +253,12 @@ var WorkspaceThumbnail = GObject.registerClass({
|
||||
'slide-position', 'slide-position', 'slide-position',
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 1, 0),
|
||||
}
|
||||
},
|
||||
}, class WorkspaceThumbnail extends St.Widget {
|
||||
_init(metaWorkspace) {
|
||||
super._init({
|
||||
clip_to_allocation: true,
|
||||
style_class: 'workspace-thumbnail'
|
||||
style_class: 'workspace-thumbnail',
|
||||
});
|
||||
this._delegate = this;
|
||||
|
||||
@ -625,8 +625,8 @@ var ThumbnailsBox = GObject.registerClass({
|
||||
'scale': GObject.ParamSpec.double(
|
||||
'scale', 'scale', 'scale',
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, Infinity, 0)
|
||||
}
|
||||
0, Infinity, 0),
|
||||
},
|
||||
}, class ThumbnailsBox extends St.Widget {
|
||||
_init() {
|
||||
super._init({ reactive: true,
|
||||
@ -741,7 +741,7 @@ var ThumbnailsBox = GObject.registerClass({
|
||||
_onDragBegin() {
|
||||
this._dragCancelled = false;
|
||||
this._dragMonitor = {
|
||||
dragMotion: this._onDragMotion.bind(this)
|
||||
dragMotion: this._onDragMotion.bind(this),
|
||||
};
|
||||
DND.addDragMonitor(this._dragMonitor);
|
||||
}
|
||||
@ -1104,7 +1104,7 @@ var ThumbnailsBox = GObject.registerClass({
|
||||
onComplete: () => {
|
||||
this._setThumbnailState(thumbnail, ThumbnailState.ANIMATED_OUT);
|
||||
this._queueUpdateStates();
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@ -1127,7 +1127,7 @@ var ThumbnailsBox = GObject.registerClass({
|
||||
thumbnail.destroy();
|
||||
|
||||
this._queueUpdateStates();
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@ -1135,7 +1135,7 @@ var ThumbnailsBox = GObject.registerClass({
|
||||
this.ease_property('scale', this._targetScale, {
|
||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||
duration: RESCALE_ANIMATION_TIME,
|
||||
onComplete: () => this._queueUpdateStates()
|
||||
onComplete: () => this._queueUpdateStates(),
|
||||
});
|
||||
this._pendingScaleUpdate = false;
|
||||
}
|
||||
@ -1152,7 +1152,7 @@ var ThumbnailsBox = GObject.registerClass({
|
||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||
onComplete: () => {
|
||||
this._setThumbnailState(thumbnail, ThumbnailState.NORMAL);
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1371,7 +1371,7 @@ var ThumbnailsBox = GObject.registerClass({
|
||||
onComplete: () => {
|
||||
this._animatingIndicator = false;
|
||||
this._queueUpdateStates();
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user