From b464bd00809c78191f993ac815dd306f1c836cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 2 Apr 2022 15:28:37 +0200 Subject: [PATCH] snippets/gobject: Use regular constructor in js scope Regular constructors now work in GObject subclasses, and the js template has already been updated to use them instead of the custom _init(). It makes sense to do the same in the corresponding snippet. --- src/plugins/snippets/snippets/gobject.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/snippets/snippets/gobject.snippets b/src/plugins/snippets/snippets/gobject.snippets index 1f6672481..71cdb1b52 100644 --- a/src/plugins/snippets/snippets/gobject.snippets +++ b/src/plugins/snippets/snippets/gobject.snippets @@ -188,8 +188,8 @@ snippet gobject - desc Create GObject var $1 = GObject.registerClass( class ${1:ClassName} extends ${2:GObject.Object} { - _init(${3}) { - super._init(); + constructor(${3}) { + super(); $0 } }); -- GitLab