Try to find race condition.
This commit is contained in:
parent
4604c41195
commit
c28406b0ac
1 changed files with 3 additions and 3 deletions
|
@ -89,6 +89,9 @@ class _Singleton
|
|||
reset: (params) ->
|
||||
console.log( 'reset', params )
|
||||
|
||||
# empty in-memory
|
||||
App[ params.type ].refresh( [], { clear: true } )
|
||||
|
||||
# remove permanent storage
|
||||
list = App.Store.list()
|
||||
for key in list
|
||||
|
@ -96,9 +99,6 @@ class _Singleton
|
|||
if parts[0] is 'collection' && parts[1] is params.type
|
||||
App.Store.delete(key)
|
||||
|
||||
# empty in-memory
|
||||
App[ params.type ].refresh( [], { clear: true } )
|
||||
|
||||
# load with new data
|
||||
@load(params)
|
||||
|
||||
|
|
Loading…
Reference in a new issue