Don't mistake GObject.registerClass() for a constructor

Those slipped through when porting from Lang.Class to ES6 classes.

Very indirectly spotted by eslint.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/388
This commit is contained in:
Florian Müllner
2019-01-31 20:38:24 +01:00
committed by Florian Müllner
parent 43fb2b38b1
commit cdd2803498
3 changed files with 3 additions and 3 deletions

View File

@ -159,7 +159,7 @@ var URLHighlighter = class URLHighlighter {
}
};
var ScaleLayout = new GObject.registerClass(
var ScaleLayout = GObject.registerClass(
class ScaleLayout extends Clutter.BinLayout {
_init(params) {
this._container = null;