diff options
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ajax.js b/src/ajax.js index d91436dd6..ca09eb939 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -431,6 +431,9 @@ jQuery.extend({ // We also use the url parameter if available s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); + // Alias method option to type as per ticket #12004 + s.type = options.method || options.type || s.method || s.type; + // Extract dataTypes list s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""]; |