Skip to content

Commit

Permalink
Fixes issue #5803
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Oct 22, 2010
1 parent bc282a8 commit 89850e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ajax.js
Expand Up @@ -207,6 +207,12 @@ jQuery.extend({
if ( s.data && s.processData && typeof s.data !== "string" ) {
s.data = jQuery.param( s.data, s.traditional );
}

// If the jsonpCallback has been set, we can assume that dataType is jsonp
// Ticket #5803
if ( s.jsonpCallback ) {
s.dataType = "jsonp";
}

// Handle JSONP Parameter Callbacks
if ( s.dataType === "jsonp" ) {
Expand Down

0 comments on commit 89850e9

Please sign in to comment.