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

Method onClickTeacherButton

app/views/HomeView.js:156–164  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

154 }
155
156 onClickTeacherButton (e) {
157 if (isCoco()) {
158 this.homePageEvent($(e.target).data('event-action'))
159 return this.openModalView(new CreateAccountModal({ startOnPath: 'oz-vs-coco' }))
160 } else {
161 this.homePageEvent('Started Signup')
162 return this.openModalView(new CreateAccountModal({ startOnPath: 'teacher' }))
163 }
164 }
165
166 onClickParentButton (e) {
167 this.homePageEvent($(e.target).data('event-action'))

Callers

nothing calls this directly

Calls 3

homePageEventMethod · 0.95
isCocoFunction · 0.85
dataMethod · 0.80

Tested by

no test coverage detected