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 081c4efcf7736433d2fb5702e7bd4f8616426af2
Showing with 3 additions and 0 deletions.
  1. +3 −0 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;

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

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

0 comments on commit 081c4ef

Please sign in to comment.
You can’t perform that action at this time.