aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/script.js
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-01-13 18:33:24 +0100
committerjaubourg <j@ubourg.net>2011-01-13 18:33:24 +0100
commita8fa5f2ec1030bceb9a65d0237f0c92ae4e014dd (patch)
tree243158b0f8dd90fb52877af3a57c98885f320b8f /src/ajax/script.js
parent44fc87f66ca54278e37f15885a80c2407036df57 (diff)
downloadjquery-a8fa5f2ec1030bceb9a65d0237f0c92ae4e014dd.tar.gz
jquery-a8fa5f2ec1030bceb9a65d0237f0c92ae4e014dd.zip
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(...).
Diffstat (limited to 'src/ajax/script.js')
-rw-r--r--src/ajax/script.js3
1 files changed, 1 insertions, 2 deletions
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 ) {