cleanup: Don't use Array/Object constructors
The corresponding literals are more concise and cleaner. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/731
This commit is contained in:
@ -104,9 +104,10 @@ class KeyContainer extends St.Widget {
|
||||
this._currentRow++;
|
||||
this._currentCol = 0;
|
||||
|
||||
let row = new Object();
|
||||
row.keys = [];
|
||||
row.width = 0;
|
||||
let row = {
|
||||
keys: [],
|
||||
width: 0,
|
||||
};
|
||||
this._rows.push(row);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user