From 663605176528ba67a5b06c7f5f7976c45ea5e6c2 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Wed, 21 Oct 2015 14:18:13 -0700 Subject: [PATCH] Refactor HomeView to use new event callback naming guideline See: https://github.com/codecombat/codecombat/wiki/Events,-subscriptions,-shortcuts#events --- app/views/HomeView.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/HomeView.coffee b/app/views/HomeView.coffee index 3a3208754..76457fc22 100644 --- a/app/views/HomeView.coffee +++ b/app/views/HomeView.coffee @@ -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()