documentcloud/backbone — pull request #1317 by lennym (2012-05-15 15:53:25+00:00)
Title: Allow Backbone.ajax to reflect changes made to $.ajax or Backbone.setDomLibrary()

Since 87c9b17aa722fb3d6b34d5b92c564eeba5516334 Backbone.ajax is set (view $.ajax) at initialisation, and so any subsequent calls to ```Backbone.setDomLibrary``` that overwrite the ```$.ajax``` method are effectively ignored.

Also ignored are changes to ```$.ajax``` - for example those made by test frameworks which mock the $.ajax method.

This change incorporates an extra function call, but allows the Backbone.ajax method to behave as per user expectations.