mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-17 19:12:33 -05:00
Add logging out event
This commit is contained in:
parent
6184171f2d
commit
60d60f8b49
2 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,8 @@ module.exports =
|
||||||
'auth:facebook-api-loaded': c.object {}
|
'auth:facebook-api-loaded': c.object {}
|
||||||
|
|
||||||
'auth:logging-in-with-facebook': c.object {}
|
'auth:logging-in-with-facebook': c.object {}
|
||||||
|
|
||||||
|
'auth:logging-out': c.object {}
|
||||||
|
|
||||||
'auth:logged-in-with-facebook': c.object {title: 'Facebook logged in', description: 'Published when you successfully logged in with Facebook', required: ['response']},
|
'auth:logged-in-with-facebook': c.object {title: 'Facebook logged in', description: 'Published when you successfully logged in with Facebook', required: ['response']},
|
||||||
response:
|
response:
|
||||||
|
|
|
@ -43,6 +43,7 @@ module.exports = class RootView extends CocoView
|
||||||
success: (achievement) => @showNewAchievement(achievement, earnedAchievement)
|
success: (achievement) => @showNewAchievement(achievement, earnedAchievement)
|
||||||
|
|
||||||
logoutAccount: ->
|
logoutAccount: ->
|
||||||
|
Backbone.Mediator.publish("auth:logging-out")
|
||||||
window.tracker?.trackEvent 'Homepage', Action: 'Log Out' if @id is 'home-view'
|
window.tracker?.trackEvent 'Homepage', Action: 'Log Out' if @id is 'home-view'
|
||||||
logoutUser($('#login-email').val())
|
logoutUser($('#login-email').val())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue