()
| 156 | } |
| 157 | |
| 158 | afterRender () { |
| 159 | super.afterRender() |
| 160 | if (!this.supermodel.finished()) { return } |
| 161 | this.playSound('game-menu-open') |
| 162 | this.$el.find('.nano:visible').nanoScroller({ alwaysVisible: true }) |
| 163 | this.itemDetailsView = new ItemDetailsView() |
| 164 | this.insertSubView(this.itemDetailsView) |
| 165 | this.$el.find("a[href='#item-category-armor']").click() // Start on armor tab, if it's there. |
| 166 | const earnedLevels = __guard__(me.get('earned'), x => x.levels) || [] |
| 167 | if (!Array.from(earnedLevels).includes(Level.levels['defense-of-plainswood'])) { |
| 168 | this.$el.find('#misc-tab').hide() |
| 169 | this.$el.find('#hero-type-select #warrior').click() // Start on warrior tab, if low level. |
| 170 | } |
| 171 | return this.showVisibleItemImages() |
| 172 | } |
| 173 | |
| 174 | onHidden () { |
| 175 | super.onHidden() |
nothing calls this directly
no test coverage detected