Unified · Split
| @@ -1,15 +1,5 @@ | |||
| 1 | // TODO: This file was created by bulk-decaffeinate. | ||
| 2 | // Sanity-check the conversion and remove this comment. | ||
| 3 | /* | ||
| 4 | * decaffeinate suggestions: | ||
| 5 | * DS102: Remove unnecessary code created because of implicit returns | ||
| 6 | * DS206: Consider reworking classes to avoid initClass | ||
| 7 | * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md | ||
| 8 | */ | ||
| 9 | app.views.RootPage = class RootPage extends app.View { | 1 | app.views.RootPage = class RootPage extends app.View { |
| 10 | static initClass() { | 2 | static events = { click: "onClick" }; |
| 11 | this.events = { click: "onClick" }; | ||
| 12 | } | ||
| 13 | 3 | ||
| 14 | init() { | 4 | init() { |
| 15 | if (!this.isHidden()) { | 5 | if (!this.isHidden()) { |
| @@ -54,4 +44,3 @@ app.views.RootPage = class RootPage extends app.View { · 38 unmodified lines | |||
| 54 | } | 44 | } |
| 55 | } | 45 | } |
| 56 | }; | 46 | }; |
| 57 | app.views.RootPage.initClass(); | ||