[gnome-shell-extensions] cleanup: Use object shorthand where possible



commit 9646149f9a986a813eb6f77e1c52a49a26a037cb
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Aug 7 03:50:09 2019 +0200

    cleanup: Use object shorthand where possible
    
    ES6 allows to omit property names where they match the name of the
    assigned variable, which makes code less redundant and thus cleaner.
    We will soon enforce that in our eslint rules, so make sure we use
    the shorthand wherever possible.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/91

 extensions/auto-move-windows/prefs.js | 2 +-
 extensions/window-list/prefs.js       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/auto-move-windows/prefs.js b/extensions/auto-move-windows/prefs.js
index 6a1848c..bd20aab 100644
--- a/extensions/auto-move-windows/prefs.js
+++ b/extensions/auto-move-windows/prefs.js
@@ -140,7 +140,7 @@ const Widget = GObject.registerClass({
             step_increment: 1
         });
         dialog._spin = new Gtk.SpinButton({
-            adjustment: adjustment,
+            adjustment,
             snap_to_ticks: true
         });
         dialog._spin.set_value(1);
diff --git a/extensions/window-list/prefs.js b/extensions/window-list/prefs.js
index ea3cb75..fdd4cd3 100644
--- a/extensions/window-list/prefs.js
+++ b/extensions/window-list/prefs.js
@@ -60,7 +60,7 @@ class WindowListPrefsWidget extends Gtk.Grid {
 
             radio = new Gtk.RadioButton({
                 active: currentMode == mode,
-                label: label,
+                label,
                 group: radio
             });
             grid.add(radio);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]