From 081c4efcf7736433d2fb5702e7bd4f8616426af2 Mon Sep 17 00:00:00 2001 From: Matt Farmer Date: Wed, 28 Nov 2012 23:59:37 +0100 Subject: [PATCH] Alias options.method to options.type. Fixes #12004. --- src/ajax.js | 3 +++ 1 file changed, 3 insertions(+) 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 ) || [""]; -- 2.39.5