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

Method onHidden

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

Source from the content-addressed store, hash-verified

78 }
79
80 onHidden () {
81 this.aceConfig.keyBindings = 'default' // We used to give them the option, but we took it away.
82 this.aceConfig.behaviors = this.$el.find('#option-behaviors').prop('checked')
83 if (this.options?.classroomAceConfig?.liveCompletion === false) {
84 // do not update liveCompletion when classroom disable the liveCompletion
85 this.aceConfig.liveCompletion = this.$el.find('#option-live-completion').prop('checked')
86 }
87 me.set('aceConfig', this.aceConfig)
88 me.patch()
89 return Backbone.Mediator.publish('tome:change-config', {})
90 }
91
92 updateMusic () {
93 return me.set('music', this.$el.find('#option-music').prop('checked'))

Callers

nothing calls this directly

Calls 3

patchMethod · 0.80
publishMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected