documentcloud/backbone — Issue #741: Global events for ajax start/stop/error/success
Author: vlucas
Created: 2011-11-10 22:32:07+00:00
State: open

I am trying to implement a global AJAX loading indicator in a new Backbone project, and I was not able to find any built-in events to hook into for displaying and hiding a loading indicator.

It would be helpful if Backbone fired events for each of: 'ajax:start', 'ajax:stop', 'ajax:error', 'ajax:success' when using the native Collection.fetch(), etc. methods.