cleanup: Also replace Params.parse(..., true) with spread

This is what Params.parse() boils down to when accepting extra
parameters, so we can just as well use standard syntax here.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3196>
This commit is contained in:
Florian Müllner
2019-12-17 20:06:24 +01:00
parent 8eec7ac3f4
commit fe1eab1b3c
3 changed files with 6 additions and 11 deletions

View File

@ -6,19 +6,17 @@ import GObject from 'gi://GObject';
import St from 'gi://St';
import * as Main from './main.js';
import * as Params from '../misc/params.js';
import * as PopupMenu from './popupMenu.js';
export const ButtonBox = GObject.registerClass(
class ButtonBox extends St.Widget {
_init(params) {
params = Params.parse(params, {
super._init({
style_class: 'panel-button',
x_expand: true,
y_expand: true,
}, true);
super._init(params);
...params,
});
this._delegate = this;