| 18 | module.exports = (OptionsView = (function () { |
| 19 | OptionsView = class OptionsView extends CocoView { |
| 20 | static initClass () { |
| 21 | this.prototype.id = 'options-view' |
| 22 | this.prototype.className = 'tab-pane coco-view' |
| 23 | this.prototype.template = template |
| 24 | this.prototype.aceConfig = {} |
| 25 | this.prototype.defaultConfig = { |
| 26 | language: 'python', |
| 27 | keyBindings: 'default', |
| 28 | behaviors: false, |
| 29 | liveCompletion: true |
| 30 | } |
| 31 | |
| 32 | this.prototype.events = { |
| 33 | 'change #option-music': 'updateMusic', |
| 34 | 'change #option-behaviors': 'updateBehaviors', |
| 35 | 'change #option-live-completion': 'updateLiveCompletion', |
| 36 | 'change #option-wide-editor': 'updateWideEditor', |
| 37 | 'click .profile-photo': 'onEditProfilePhoto', |
| 38 | 'click .editable-icon': 'onEditProfilePhoto' |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | constructor (options) { |
| 43 | super(options) |