| 20 | module.exports = (MyCodeView = (function () { |
| 21 | MyCodeView = class MyCodeView extends CocoView { |
| 22 | static initClass () { |
| 23 | this.prototype.id = 'my-code-view' |
| 24 | this.prototype.className = 'tab-pane' |
| 25 | this.prototype.template = template |
| 26 | |
| 27 | this.prototype.events = { |
| 28 | 'click .reload-code': 'onClickReloadCode', |
| 29 | 'click .beautify-code': 'onClickBeautifyCode', |
| 30 | 'click .ai-hint': 'onClickAIHint', |
| 31 | 'click .teacher-help': 'onClickTeacherHelp', |
| 32 | 'click .image-gallery': 'onClickImageGallery', |
| 33 | 'click .toggle-solution': 'onClickToggleSolution', |
| 34 | 'click .fill-solution': 'onClickFillSolution', |
| 35 | 'click .switch-team': 'onClickSwitchTeam', |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | constructor (options) { |
| 40 | super(options) |