Fixed race condition and improved performance: Refresh models after all new records of _all_ types were added instead of current model only.
This commit is contained in:
parent
798add3642
commit
6ff324094c
1 changed files with 3 additions and 3 deletions
|
@ -74,9 +74,9 @@ class _collectionSingleton extends Spine.Module
|
|||
if !_.isEmpty(later)
|
||||
loadAssetsLater[type] = later
|
||||
|
||||
# process existing assets
|
||||
for type, collections of loadAssetsLater
|
||||
App[type].refresh(collections)
|
||||
# process existing assets
|
||||
for type, collections of loadAssetsLater
|
||||
App[type].refresh(collections)
|
||||
|
||||
if params.targetModel
|
||||
for type, collections of assets
|
||||
|
|
Loading…
Reference in a new issue