mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
Ajax: Remove unnecessary use of jQuery.trim
The subsequent .match already ignores leading/trailing space. Ref gh-3003 Closes gh-3095
This commit is contained in:
parent
d3a781d762
commit
0bd98b1b13
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user