Improved error handling.
This commit is contained in:
parent
8eae1af1e2
commit
d3b92a2206
2 changed files with 3 additions and 2 deletions
|
@ -74,7 +74,8 @@ class App.TicketZoom extends App.Controller
|
||||||
@load(data)
|
@load(data)
|
||||||
App.Store.write( @key, data )
|
App.Store.write( @key, data )
|
||||||
|
|
||||||
error: =>
|
error: (xhr, status, error) =>
|
||||||
|
return if status is 'abort'
|
||||||
App.TaskManager.remove( @task_key )
|
App.TaskManager.remove( @task_key )
|
||||||
@release()
|
@release()
|
||||||
)
|
)
|
||||||
|
|
|
@ -21,7 +21,7 @@ class App.TaskWidget extends App.Controller
|
||||||
App.TaskManager.sync()
|
App.TaskManager.sync()
|
||||||
@delay( sync, 3000, 'task-widget' )
|
@delay( sync, 3000, 'task-widget' )
|
||||||
|
|
||||||
@delay( sync, 3000, 'task-widget' )
|
@delay( sync, 5000, 'task-widget' )
|
||||||
|
|
||||||
render: ->
|
render: ->
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue