Improved error handling.

This commit is contained in:
Martin Edenhofer 2013-04-21 15:31:50 +02:00
parent 8eae1af1e2
commit d3b92a2206
2 changed files with 3 additions and 2 deletions

View file

@ -74,7 +74,8 @@ class App.TicketZoom extends App.Controller
@load(data)
App.Store.write( @key, data )
error: =>
error: (xhr, status, error) =>
return if status is 'abort'
App.TaskManager.remove( @task_key )
@release()
)

View file

@ -21,7 +21,7 @@ class App.TaskWidget extends App.Controller
App.TaskManager.sync()
@delay( sync, 3000, 'task-widget' )
@delay( sync, 3000, 'task-widget' )
@delay( sync, 5000, 'task-widget' )
render: ->