Skip to content

Commit 0bd98b1

Browse files
ralincgibson042
authored andcommitted
Ajax: Remove unnecessary use of jQuery.trim
The subsequent .match already ignores leading/trailing space. Ref gh-3003 Closes gh-3095
1 parent d3a781d commit 0bd98b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ jQuery.extend( {
531531
s.type = options.method || options.type || s.method || s.type;
532532

533533
// Extract dataTypes list
534-
s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
534+
s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
535535

536536
// A cross-domain request is in order when the origin doesn't match the current origin.
537537
if ( s.crossDomain == null ) {

0 commit comments

Comments
 (0)