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

Method afterRender

app/views/HomeCNView.js:178–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176 }
177
178 afterRender () {
179 if (me.isAnonymous()) {
180 if (document.location.hash === '#create-account') {
181 this.openModalView(new CreateAccountModal())
182 }
183 if (document.location.hash === '#create-account-individual') {
184 this.openModalView(new CreateAccountModal({ startOnPath: 'individual' }))
185 }
186 if (document.location.hash === '#create-account-student') {
187 this.openModalView(new CreateAccountModal({ startOnPath: 'student' }))
188 }
189 if (document.location.hash === '#create-account-teacher') {
190 this.openModalView(new CreateAccountModal({ startOnPath: 'teacher' }))
191 }
192 }
193 return super.afterRender()
194 }
195
196 afterInsert () {
197 super.afterInsert()

Callers

nothing calls this directly

Calls 1

isAnonymousMethod · 0.80

Tested by

no test coverage detected