Sanity-check decaffeinate app.views.Content

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

@ -12,27 +12,25 @@
* 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";
static events = { click: "onClick" };
this.events = { click: "onClick" };
static shortcuts = {
this.shortcuts = { altUp: "scrollStepUp",
altUp: "scrollStepUp", altDown: "scrollStepDown",
altDown: "scrollStepDown", pageUp: "scrollPageUp",
pageUp: "scrollPageUp", pageDown: "scrollPageDown",
pageDown: "scrollPageDown", pageTop: "scrollToTop",
pageTop: "scrollToTop", pageBottom: "scrollToBottom",
pageBottom: "scrollToBottom", altF: "onAltF",
altF: "onAltF", };
};
static routes = {
this.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