Moved jQuery.ajax.prefilter and jQuery.ajax.transport to jQuery.ajaxPrefilter and jQuery.ajaxTransport so that proxying the ajax method doesn't turn into a nightmare. Thanks go to scott_gonzalez and DaveMethvin for pointing out the issue. Also made ajaxSetup return "this" to enable chainable definitions -- jQuery.ajaxSetup(...).ajaxPrefilter(...).ajaxTransport(...).
This commit is contained in:
parent
44fc87f66c
commit
a8fa5f2ec1
4 changed files with 11 additions and 12 deletions
|
@ -14,10 +14,9 @@ jQuery.ajaxSetup({
|
|||
converters: {
|
||||
"text script": jQuery.globalEval
|
||||
}
|
||||
});
|
||||
|
||||
// Bind script tag hack transport
|
||||
jQuery.ajax.transport("script", function(s) {
|
||||
}).ajaxTransport("script", function(s) {
|
||||
|
||||
// Handle cache special case
|
||||
if ( s.cache === undefined ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue