Fix specs

This commit is contained in:
Ben Gotow 2015-07-23 11:32:13 -07:00
parent e1792a40dc
commit 0aea79f0ba
4 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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: ->

View file

@ -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]
### ###