Sanity-check decaffeinate app.views.SupportTablesPage

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

@ -1,18 +1,9 @@
// 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
*/
//= require views/pages/base //= require views/pages/base
app.views.SupportTablesPage = class SupportTablesPage extends ( app.views.SupportTablesPage = class SupportTablesPage extends (
app.views.BasePage app.views.BasePage
) { ) {
static initClass() { static events = { click: "onClick" };
this.events = { click: "onClick" };
}
onClick(event) { onClick(event) {
if (!event.target.classList.contains("show-all")) { if (!event.target.classList.contains("show-all")) {
@ -27,4 +18,3 @@ app.views.SupportTablesPage = class SupportTablesPage extends (
el.classList.add("show-all"); el.classList.add("show-all");
} }
}; };
app.views.SupportTablesPage.initClass();

Loading…
Cancel
Save