Improved error handling.
This commit is contained in:
parent
43c3b3f6d8
commit
51ab301745
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue