diff options
author | Matt Farmer <matt@frmr.me> | 2012-11-28 23:59:37 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2012-11-28 23:59:37 +0100 |
commit | 081c4efcf7736433d2fb5702e7bd4f8616426af2 (patch) | |
tree | 7748601cf2a10f104463280297e60a32bb3fe5d4 | |
parent | 9ae6b1a019553e95a6205d5c42ff7fa25e7a482e (diff) | |
download | jquery-081c4efcf7736433d2fb5702e7bd4f8616426af2.tar.gz jquery-081c4efcf7736433d2fb5702e7bd4f8616426af2.zip |
Alias options.method to options.type. Fixes #12004.
-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 ) || [""]; |