Skip to content
Permalink
Browse files
Alias options.method to options.type. Fixes #12004.
  • Loading branch information
farmdawgnation authored and jaubourg committed Nov 28, 2012
1 parent 9ae6b1a commit 081c4ef
Showing 1 changed file with 3 additions and 0 deletions.
@@ -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;

This comment has been minimized.

Copy link
@rentalhost

rentalhost Nov 29, 2012

Really is need get options data? I think that s is sufficient, not?

This comment has been minimized.

Copy link
@rwaldron

rwaldron Nov 29, 2012

Member

Refer to: 6378a19


// Extract dataTypes list
s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""];

0 comments on commit 081c4ef

Please sign in to comment.