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

Method initClass

app/views/play/menu/OptionsView.js:20–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18module.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)

Callers 1

OptionsView.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected