Unified · Split
| @@ -1,23 +1,13 @@ | |||
| 1 | // TODO: This file was created by bulk-decaffeinate. | ||
| 2 | // Sanity-check the conversion and remove this comment. | ||
| 3 | /* | ||
| 4 | * decaffeinate suggestions: | ||
| 5 | * DS101: Remove unnecessary use of Array.from | ||
| 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.Path = class Path extends app.View { | 1 | app.views.Path = class Path extends app.View { |
| 10 | static initClass() { | 2 | static className = "_path"; |
| 11 | this.className = "_path"; | 3 | static attributes = { role: "complementary" }; |
| 12 | this.attributes = { role: "complementary" }; | ||
| 13 | 4 | ||
| 14 | this.events = { click: "onClick" }; | 5 | static events = { click: "onClick" }; |
| 15 | 6 | ||
| 16 | this.routes = { after: "afterRoute" }; | 7 | static routes = { after: "afterRoute" }; |
| 17 | } | ||
| 18 | 8 | ||
| 19 | render(...args) { | 9 | render(...args) { |
| 20 | this.html(this.tmpl("path", ...Array.from(args))); | 10 | this.html(this.tmpl("path", ...args)); |
| 21 | this.show(); | 11 | this.show(); |
| 22 | } | 12 | } |
| 23 | 13 | ||
| @@ -59,4 +49,3 @@ app.views.Path = class Path extends app.View { · 35 unmodified lines | |||
| 59 | } | 49 | } |
| 60 | } | 50 | } |
| 61 | }; | 51 | }; |
| 62 | app.views.Path.initClass(); | ||