From a8fa5f2ec1030bceb9a65d0237f0c92ae4e014dd Mon Sep 17 00:00:00 2001 From: jaubourg Date: Thu, 13 Jan 2011 18:33:24 +0100 Subject: 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(...). --- src/ajax/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ajax/script.js') 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 ) { -- cgit v1.2.3