From 0fd94c1e1e9301387491bd2b353955af67a052ef Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Mon, 25 Jan 2016 14:43:17 -0800 Subject: [PATCH] Fix FocusedAccountStore: remove unnecessary accountstore listener --- src/flux/stores/focused-perspective-store.coffee | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/flux/stores/focused-perspective-store.coffee b/src/flux/stores/focused-perspective-store.coffee index a85425311..0f91cbd34 100644 --- a/src/flux/stores/focused-perspective-store.coffee +++ b/src/flux/stores/focused-perspective-store.coffee @@ -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())