Skip to content

Commit

Permalink
Simplified s.dataType handling (since s.dataType is no longer updated…
Browse files Browse the repository at this point in the history
… as we go).

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
  • Loading branch information
jaubourg committed Feb 13, 2010
1 parent 2f27f5f commit d632855
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ jQuery.xhr = function( _native ) {

// Datatype
if ( ! s.dataType ) {
s.dataType = "*";
s.dataTypes = ["*"];
} else {
s.dataType = jQuery.trim(s.dataType).toLowerCase();
s.dataTypes = jQuery.trim(s.dataType).toLowerCase().split(/\s+/);
}
s.dataTypes = s.dataType.split(/\s+/);

// Convert data if not already a string
if ( s.data && s.processData && typeof s.data != "string" ) {
Expand Down

0 comments on commit d632855

Please sign in to comment.