neonux/jquery-mockjax — comment on commit 0c63170d1b2af0b35268a8086da2264b045da23e
File:  line 0
By jdsharp:

Hi neonux,

I've had a chance to review this pull request and don't think this would be the best way to go about what you're trying to accomplish. Modifying the actual Ajax settings object without actually mocking anything is not the desired behavior. It's possible to run into situations where it will be difficult to determine exactly what is happening if Mockjax is included.

It's possible to achieve what you're looking to do either one of two ways. Use of the Mockjax "proxy" property or through jQuery's beforeSend callback (http://api.jquery.com/jQuery.ajax/).

Cheers,
- Jonathan