mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-06 19:26:55 +08:00
Fix specs
This commit is contained in:
parent
e1792a40dc
commit
0aea79f0ba
4 changed files with 5 additions and 3 deletions
|
@ -3,6 +3,7 @@ Reflux = require 'reflux'
|
|||
|
||||
MessageStoreStub = Reflux.createStore
|
||||
items: -> []
|
||||
extensions: -> []
|
||||
threadId: -> null
|
||||
|
||||
NamespaceStoreStub = Reflux.createStore
|
||||
|
|
|
@ -52,7 +52,6 @@ MessageStore = Reflux.createStore
|
|||
# - `ext` A {MessageStoreExtension} instance.
|
||||
#
|
||||
registerExtension: (ext) =>
|
||||
@_extensions ?= []
|
||||
@_extensions.push(ext)
|
||||
|
||||
# Public: Unregisters the extension provided from the MessageStore.
|
||||
|
@ -65,12 +64,13 @@ MessageStore = Reflux.createStore
|
|||
|
||||
########### PRIVATE ####################################################
|
||||
|
||||
_setStoreDefaults: ->
|
||||
_setStoreDefaults: =>
|
||||
@_items = []
|
||||
@_itemsExpanded = {}
|
||||
@_itemsLocalIds = {}
|
||||
@_itemsLoading = false
|
||||
@_thread = null
|
||||
@_extensions = []
|
||||
@_inflight = {}
|
||||
|
||||
_registerListeners: ->
|
||||
|
|
|
@ -138,6 +138,7 @@ class WorkspaceStore
|
|||
# Public: Returns a {Boolean} indicating whether the location provided is hidden.
|
||||
# You should provide one of the WorkspaceStore.Location constant values.
|
||||
isLocationHidden: (loc) =>
|
||||
return false unless loc
|
||||
@_hiddenLocations[loc.id]
|
||||
|
||||
###
|
||||
|
|
Loading…
Add table
Reference in a new issue