cleanup: Use method syntax

Modern javascript has a short-hand for function properties, embrace
it for better readability and to prepare for porting to ES6 classes.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/30
This commit is contained in:
Florian Müllner
2017-12-01 20:50:28 +01:00
parent 968ae427f1
commit 30e7ff5a8f
14 changed files with 227 additions and 227 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ const ExamplePrefsWidget = new GObject.Class({
GTypeName: 'ExamplePrefsWidget',
Extends: Gtk.Grid,
_init: function(params) {
_init(params) {
this.parent(params);
this.margin = 12;
this.row_spacing = this.column_spacing = 6;