mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-25 21:43:47 -04:00
Play problem alert sound on jiggle
This commit is contained in:
parent
ab9d5b2171
commit
1f11ad66ed
1 changed files with 1 additions and 1 deletions
|
@ -62,10 +62,10 @@ module.exports = class ProblemAlertView extends CocoView
|
|||
return unless @problem?
|
||||
@$el.show() unless @$el.is(":visible")
|
||||
@$el.addClass 'jiggling'
|
||||
Backbone.Mediator.publish 'audio-player:play-sound', trigger: 'error_appear', volume: 1.0
|
||||
pauseJiggle = =>
|
||||
@$el?.removeClass 'jiggling'
|
||||
_.delay pauseJiggle, 2000
|
||||
|
||||
|
||||
onHideProblemAlert: ->
|
||||
@onRemoveClicked()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue