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

Method initClass

app/views/core/CreateAccountModal/ExtrasView.js:19–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17module.exports = (ExtrasView = (function () {
18 ExtrasView = class ExtrasView extends CocoView {
19 static initClass () {
20 this.prototype.id = 'extras-view'
21 this.prototype.template = template
22 this.prototype.retainSubviews = true
23
24 this.prototype.events = {
25 'click .next-button' () {
26 if (this.signupState.get('path') === 'student') {
27 if (window.tracker != null) {
28 window.tracker.trackEvent('CreateAccountModal Student ExtrasView Next Clicked', { category: 'Students' })
29 }
30 }
31 return this.trigger('nav-forward')
32 }
33 }
34 }
35
36 constructor (param) {
37 if (param == null) { param = {} }

Callers 1

ExtrasView.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected