aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
diff options
context:
space:
mode:
Diffstat (limited to 'src/ajax')
-rw-r--r--src/ajax/jsonp.js5
-rw-r--r--src/ajax/script.js3
-rw-r--r--src/ajax/xhr.js2
3 files changed, 4 insertions, 6 deletions
diff --git a/src/ajax/jsonp.js b/src/ajax/jsonp.js
index dd04b34b0..1df5dd427 100644
--- a/src/ajax/jsonp.js
+++ b/src/ajax/jsonp.js
@@ -10,12 +10,11 @@ jQuery.ajaxSetup({
jsonpCallback: function() {
return "jsonp" + jsc++;
}
-});
// Normalize jsonp queries
// 1) put callback parameter in url or data
// 2) sneakily ensure transportDataType is always jsonp for jsonp requests
-jQuery.ajax.prefilter("json jsonp", function(s, originalSettings) {
+}).ajaxPrefilter("json jsonp", function(s, originalSettings) {
if ( s.dataTypes[ 0 ] === "jsonp" ||
originalSettings.jsonp ||
@@ -38,7 +37,7 @@ jQuery.ajax.prefilter("json jsonp", function(s, originalSettings) {
}
// Bind transport to jsonp dataType
-}).transport("jsonp", function(s) {
+}).ajaxTransport("jsonp", function(s) {
// Put callback in place
var responseContainer,
diff --git a/src/ajax/script.js b/src/ajax/script.js
index 645ddf335..8e2e89ac5 100644
--- a/src/ajax/script.js
+++ b/src/ajax/script.js
@@ -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 ) {
diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js
index 614bd3a0c..34aa832fe 100644
--- a/src/ajax/xhr.js
+++ b/src/ajax/xhr.js
@@ -10,7 +10,7 @@ var // Next active xhr id
xhrUnloadAbortInstalled;
-jQuery.ajax.transport( function( s , determineDataType ) {
+jQuery.ajaxTransport( function( s , determineDataType ) {
// Cross domain only allowed if supported through XMLHttpRequest
if ( ! s.crossDomain || jQuery.support.cors ) {