mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
Unattach resize event when NewHomeView is destoryed
This commit is contained in:
parent
f723b2155b
commit
58895470ed
1 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,10 @@ module.exports = class NewHomeView extends RootView
|
|||
setTimeout(@fitToPage, 0)
|
||||
super()
|
||||
|
||||
destroy: ->
|
||||
$(window).off 'resize', @fitToPage
|
||||
super()
|
||||
|
||||
logoutAccount: ->
|
||||
Backbone.Mediator.publish("auth:logging-out", {})
|
||||
logoutUser()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue