Fix FocusedAccountStore: remove unnecessary accountstore listener

This commit is contained in:
Juan Tejada 2016-01-25 14:43:17 -08:00
parent cffb3ad4a2
commit 0fd94c1e1e

View file

@ -11,7 +11,6 @@ class FocusedPerspectiveStore extends NylasStore
@_current = @_defaultPerspective()
@listenTo CategoryStore, @_onCategoryStoreChanged
@listenTo AccountStore, @_onAccountStoreChanged
@listenTo Actions.focusMailboxPerspective, @_onFocusPerspective
@listenTo Actions.focusDefaultMailboxPerspectiveForAccounts, @_onFocusAccounts
@ -20,9 +19,6 @@ class FocusedPerspectiveStore extends NylasStore
# Inbound Events
_onAccountStoreChanged: ->
@_setupFastAccountMenu()
_onCategoryStoreChanged: ->
if @_current.isEqual(MailboxPerspective.forNothing())
@_setPerspective(@_defaultPerspective())