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

Method onVolumeSliderChange

app/views/play/menu/OptionsView.js:72–78  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

70 }
71
72 onVolumeSliderChange (e) {
73 const volume = this.volumeSlider.slider('value')
74 me.set('volume', volume)
75 this.$el.find('#option-volume-value').text((volume * 100).toFixed(0) + '%')
76 Backbone.Mediator.publish('level:set-volume', { volume })
77 return this.playSound('menu-button-click') // Could have another volume-indicating noise
78 }
79
80 onHidden () {
81 this.aceConfig.keyBindings = 'default' // We used to give them the option, but we took it away.

Callers

nothing calls this directly

Calls 2

publishMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected