mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Refactor HomeView to use new event callback naming guideline
See: https://github.com/codecombat/codecombat/wiki/Events,-subscriptions,-shortcuts#events
This commit is contained in:
parent
452e6467b4
commit
6636051765
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ module.exports = class HomeView extends RootView
|
|||
template: template
|
||||
|
||||
events:
|
||||
'click #play-button': 'onClickBeginnerCampaign'
|
||||
'click #play-button': 'onClickPlayButton'
|
||||
|
||||
constructor: ->
|
||||
super()
|
||||
|
@ -34,7 +34,7 @@ module.exports = class HomeView extends RootView
|
|||
c.isIPadBrowser = @isIPadBrowser()
|
||||
c
|
||||
|
||||
onClickBeginnerCampaign: (e) ->
|
||||
onClickPlayButton: (e) ->
|
||||
@playSound 'menu-button-click'
|
||||
e.preventDefault()
|
||||
e.stopImmediatePropagation()
|
||||
|
|
Loading…
Reference in a new issue