diff options
author | jaubourg <j@ubourg.net> | 2011-01-20 04:12:15 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-01-20 04:12:15 +0100 |
commit | 64e1cdbb95b8bbefbc9dec70ae30e0714a549619 (patch) | |
tree | 012b38898366a0c150f2b7d32aaa7d65522daa44 /src/ajax/jsonp.js | |
parent | 96b00a493522fd3995f0752803da2c13bbf21755 (diff) | |
download | jquery-64e1cdbb95b8bbefbc9dec70ae30e0714a549619.tar.gz jquery-64e1cdbb95b8bbefbc9dec70ae30e0714a549619.zip |
Cleans up and simplifies code shared by ajaxPrefilter and ajaxTransport. Removes chainability of ajaxSetup, ajaxPrefilter and ajaxTransport. Also makes sure context is handled properly by ajaxSetup (unit test added).
Diffstat (limited to 'src/ajax/jsonp.js')
-rw-r--r-- | src/ajax/jsonp.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ajax/jsonp.js b/src/ajax/jsonp.js index 883876fc0..ff8d1f145 100644 --- a/src/ajax/jsonp.js +++ b/src/ajax/jsonp.js @@ -9,10 +9,11 @@ jQuery.ajaxSetup({ jsonpCallback: function() { return "jsonp" + jsc++; } +}); // Detect, normalize options and install callbacks for jsonp requests // (dataIsString is used internally) -}).ajaxPrefilter("json jsonp", function(s, originalSettings, dataIsString) { +jQuery.ajaxPrefilter("json jsonp", function(s, originalSettings, dataIsString) { dataIsString = ( typeof(s.data) === "string" ); |