aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalin Chimev <ralin.chimev@gmail.com>2016-04-29 22:22:27 +0300
committerRichard Gibson <richard.gibson@gmail.com>2016-04-29 16:27:56 -0400
commit0bd98b1b13872255225358f328bee1f980755483 (patch)
treef31f811bf9dfd8f79bd4113d7832c3cb2cc03769
parentd3a781d762913c55a7b9b97eb2fd38711a371f9a (diff)
downloadjquery-0bd98b1b13872255225358f328bee1f980755483.tar.gz
jquery-0bd98b1b13872255225358f328bee1f980755483.zip
Ajax: Remove unnecessary use of jQuery.trim
The subsequent .match already ignores leading/trailing space. Ref gh-3003 Closes gh-3095
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index fd6679936..2bb03883d 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -531,7 +531,7 @@ jQuery.extend( {
s.type = options.method || options.type || s.method || s.type;
// Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
+ s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
// A cross-domain request is in order when the origin doesn't match the current origin.
if ( s.crossDomain == null ) {