mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-08 20:26:20 +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
|
MessageStoreStub = Reflux.createStore
|
||||||
items: -> []
|
items: -> []
|
||||||
|
extensions: -> []
|
||||||
threadId: -> null
|
threadId: -> null
|
||||||
|
|
||||||
NamespaceStoreStub = Reflux.createStore
|
NamespaceStoreStub = Reflux.createStore
|
||||||
|
|
|
@ -52,7 +52,6 @@ MessageStore = Reflux.createStore
|
||||||
# - `ext` A {MessageStoreExtension} instance.
|
# - `ext` A {MessageStoreExtension} instance.
|
||||||
#
|
#
|
||||||
registerExtension: (ext) =>
|
registerExtension: (ext) =>
|
||||||
@_extensions ?= []
|
|
||||||
@_extensions.push(ext)
|
@_extensions.push(ext)
|
||||||
|
|
||||||
# Public: Unregisters the extension provided from the MessageStore.
|
# Public: Unregisters the extension provided from the MessageStore.
|
||||||
|
@ -65,12 +64,13 @@ MessageStore = Reflux.createStore
|
||||||
|
|
||||||
########### PRIVATE ####################################################
|
########### PRIVATE ####################################################
|
||||||
|
|
||||||
_setStoreDefaults: ->
|
_setStoreDefaults: =>
|
||||||
@_items = []
|
@_items = []
|
||||||
@_itemsExpanded = {}
|
@_itemsExpanded = {}
|
||||||
@_itemsLocalIds = {}
|
@_itemsLocalIds = {}
|
||||||
@_itemsLoading = false
|
@_itemsLoading = false
|
||||||
@_thread = null
|
@_thread = null
|
||||||
|
@_extensions = []
|
||||||
@_inflight = {}
|
@_inflight = {}
|
||||||
|
|
||||||
_registerListeners: ->
|
_registerListeners: ->
|
||||||
|
|
|
@ -138,6 +138,7 @@ class WorkspaceStore
|
||||||
# Public: Returns a {Boolean} indicating whether the location provided is hidden.
|
# Public: Returns a {Boolean} indicating whether the location provided is hidden.
|
||||||
# You should provide one of the WorkspaceStore.Location constant values.
|
# You should provide one of the WorkspaceStore.Location constant values.
|
||||||
isLocationHidden: (loc) =>
|
isLocationHidden: (loc) =>
|
||||||
|
return false unless loc
|
||||||
@_hiddenLocations[loc.id]
|
@_hiddenLocations[loc.id]
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
Loading…
Add table
Reference in a new issue