X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Ftransports%2Fjsonp.js;h=aa30b5dda93ab44d8f15bf68850fcdd4c450f154;hb=ae6655bcb6d852b79df2ddc5545832c5d08936f4;hp=a685bb19699b54b2167959c176fc2a953920f666;hpb=d303687815581987f75f2e40e833022fc25c8741;p=jquery.git diff --git a/src/transports/jsonp.js b/src/transports/jsonp.js index a685bb1..aa30b5d 100644 --- a/src/transports/jsonp.js +++ b/src/transports/jsonp.js @@ -14,7 +14,7 @@ jQuery.ajaxSettings.jsonpCallback = function() { // 2) sneakily ensure transportDataType is json // 3) ensure options jsonp is always provided so that jsonp requests are always // json request with the jsonp option set -jQuery.xhr.prefilter("json jsonp", function(s) { +jQuery.ajax.prefilter("json jsonp", function(s) { var transportDataType = s.dataTypes[ 0 ]; @@ -70,7 +70,7 @@ jQuery.xhr.prefilter("json jsonp", function(s) { }, s.complete ]; // Use data converter to retrieve json after script execution - s.dataConverters["script json"] = function() { + s.converters["script json"] = function() { if ( ! responseContainer ) { jQuery.error( jsonpCallback + " was not called" ); }