mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -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
|
template: template
|
||||||
|
|
||||||
events:
|
events:
|
||||||
'click #play-button': 'onClickBeginnerCampaign'
|
'click #play-button': 'onClickPlayButton'
|
||||||
|
|
||||||
constructor: ->
|
constructor: ->
|
||||||
super()
|
super()
|
||||||
|
@ -34,7 +34,7 @@ module.exports = class HomeView extends RootView
|
||||||
c.isIPadBrowser = @isIPadBrowser()
|
c.isIPadBrowser = @isIPadBrowser()
|
||||||
c
|
c
|
||||||
|
|
||||||
onClickBeginnerCampaign: (e) ->
|
onClickPlayButton: (e) ->
|
||||||
@playSound 'menu-button-click'
|
@playSound 'menu-button-click'
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
e.stopImmediatePropagation()
|
e.stopImmediatePropagation()
|
||||||
|
|
Loading…
Reference in a new issue