Sanity-check decaffeinate app.views.HiddenPage

pull/1441/head
Simon Legner 1 year ago
parent 4c1a48059f
commit 64242c04fe

@ -1,14 +1,5 @@
// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
/*
* decaffeinate suggestions:
* DS206: Consider reworking classes to avoid initClass
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/
app.views.HiddenPage = class HiddenPage extends app.View {
static initClass() {
this.events = { click: "onClick" };
}
static events = { click: "onClick" };
constructor(el, entry) {
super(el);
@ -16,7 +7,8 @@ app.views.HiddenPage = class HiddenPage extends app.View {
}
init() {
this.addSubview((this.notice = new app.views.Notice("disabledDoc")));
this.notice = new app.views.Notice("disabledDoc");
this.addSubview(this.notice);
this.activate();
}
@ -28,4 +20,3 @@ app.views.HiddenPage = class HiddenPage extends app.View {
}
}
};
app.views.HiddenPage.initClass();

Loading…
Cancel
Save