mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
cleanup: Use spread properties instead of Object.assign()
It's more concise and has been around long enough to embrace it. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3196>
This commit is contained in:
parent
5ce991749d
commit
8eec7ac3f4
7 changed files with 30 additions and 24 deletions
|
|
@ -168,8 +168,10 @@ export function addContextMenu(entry, params) {
|
|||
export const CapsLockWarning = GObject.registerClass(
|
||||
class CapsLockWarning extends St.Label {
|
||||
_init(params) {
|
||||
let defaultParams = {style_class: 'caps-lock-warning-label'};
|
||||
super._init(Object.assign(defaultParams, params));
|
||||
super._init({
|
||||
style_class: 'caps-lock-warning-label',
|
||||
...params,
|
||||
});
|
||||
|
||||
this.text = _('Caps lock is on.');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue