Sanity-check decaffeinate app.views.Content

pull/1441/head
Simon Legner 1 year ago
parent 7e4d5b9fd5
commit 92d6d5e1d4

@ -12,13 +12,12 @@
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/ */
app.views.Content = class Content extends app.View { app.views.Content = class Content extends app.View {
static initClass() { static el = "._content";
this.el = "._content"; static loadingClass = "_content-loading";
this.loadingClass = "_content-loading";
this.events = { click: "onClick" }; static events = { click: "onClick" };
this.shortcuts = { static shortcuts = {
altUp: "scrollStepUp", altUp: "scrollStepUp",
altDown: "scrollStepDown", altDown: "scrollStepDown",
pageUp: "scrollPageUp", pageUp: "scrollPageUp",
@ -28,11 +27,10 @@ app.views.Content = class Content extends app.View {
altF: "onAltF", altF: "onAltF",
}; };
this.routes = { static routes = {
before: "beforeRoute", before: "beforeRoute",
after: "afterRoute", after: "afterRoute",
}; };
}
init() { init() {
this.scrollEl = app.isMobile() this.scrollEl = app.isMobile()
@ -260,7 +258,6 @@ app.views.Content = class Content extends app.View {
); );
} }
}; };
app.views.Content.initClass();
function __guard__(value, transform) { function __guard__(value, transform) {
return typeof value !== "undefined" && value !== null return typeof value !== "undefined" && value !== null

Loading…
Cancel
Save