Also update changes in local storage.
This commit is contained in:
parent
b6adaa28d6
commit
579ba37b2b
1 changed files with 5 additions and 0 deletions
|
@ -162,8 +162,13 @@ class _Singleton extends Spine.Module
|
|||
if callback
|
||||
|
||||
# execute callback if record got loaded
|
||||
col = @
|
||||
App[type].one 'refresh', ->
|
||||
data = App.Collection.find( type, id )
|
||||
|
||||
# load update to local storage
|
||||
col.load( localStorage: true, type: type, data: data )
|
||||
|
||||
callback( data )
|
||||
|
||||
# fetch object
|
||||
|
|
Loading…
Reference in a new issue