mirror of
https://github.com/jquery/jquery.git
synced 2026-01-23 05:18:12 -05:00
Alias options.method to options.type. Fixes #12004.
This commit is contained in:
@@ -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 ) || [""];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user