MCPcopy Create free account
hub / github.com/codecombat/codecombat / afterRender

Method afterRender

app/views/play/menu/GameMenuModal.js:104–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 }
103
104 afterRender () {
105 super.afterRender()
106 for (const SubmenuView of Array.from(submenuViews)) { this.insertSubView(new SubmenuView(this.options)) }
107 let firstView = this.subviews.my_code_view
108 if (utils.showOzaria()) {
109 // ozaria still uses options_view
110 firstView = this.subviews.options_view
111 }
112 if (firstView) {
113 firstView.$el.addClass('active')
114 if (typeof firstView.onShown === 'function') {
115 firstView.onShown()
116 }
117 }
118 this.playSound('game-menu-open')
119 return this.$el.find('.nano:visible').nanoScroller()
120 }
121
122 onTabShown (e) {
123 this.playSound('game-menu-tab-switch')

Callers

nothing calls this directly

Calls 1

onShownMethod · 0.45

Tested by

no test coverage detected