Also update changes in local storage.

This commit is contained in:
Martin Edenhofer 2012-12-14 21:01:03 +01:00
parent b6adaa28d6
commit 579ba37b2b

View file

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