This commit is contained in:
rwldrn 2010-10-24 12:18:33 -04:00
parent 9bd9ebdd73
commit 3b50eaca2c
4 changed files with 44 additions and 0 deletions

View file

@ -208,6 +208,12 @@ jQuery.extend({
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" ) {
if ( type === "GET" ) {