| 17 | module.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 = {} } |