Sanity-check decaffeinate app.views.Menu

pull/1441/head
Simon Legner 1 year ago
parent f465cc81e0
commit a86eca41af

@ -1,17 +1,8 @@
// 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.Menu = class Menu extends app.View { app.views.Menu = class Menu extends app.View {
static initClass() { static el = "._menu";
this.el = "._menu"; static activeClass = "active";
this.activeClass = "active";
this.events = { click: "onClick" }; static events = { click: "onClick" };
}
init() { init() {
$.on(document.body, "click", (event) => this.onGlobalClick(event)); $.on(document.body, "click", (event) => this.onGlobalClick(event));
@ -39,4 +30,3 @@ app.views.Menu = class Menu extends app.View {
} }
} }
}; };
app.views.Menu.initClass();

Loading…
Cancel
Save