Improved error handling.

This commit is contained in:
Martin Edenhofer 2013-03-19 12:14:37 +01:00
parent 43c3b3f6d8
commit 51ab301745

View file

@ -130,7 +130,7 @@ class _Singleton extends Spine.Module
# load full array once # load full array once
if _.isArray( params.data ) if _.isArray( params.data )
if !params.refresh if !params.refresh && App[ params.type ]
App[ params.type ].refresh( params.data ) App[ params.type ].refresh( params.data )
# remember in store if not already requested from local storage # remember in store if not already requested from local storage
@ -142,7 +142,7 @@ class _Singleton extends Spine.Module
# load data from object # load data from object
# if _.isObject( params.data ) # if _.isObject( params.data )
for key, object of params.data for key, object of params.data
if !params.refresh if !params.refresh && App[ params.type ]
App[ params.type ].refresh( object ) App[ params.type ].refresh( object )
# remember in store if not already requested from local storage # remember in store if not already requested from local storage