Skip to content

Commit

Permalink
Use a semantic name for the variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Aug 23, 2011
1 parent 771e637 commit 9b17452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ajax.js
Expand Up @@ -45,7 +45,7 @@ var r20 = /%20/g,
ajaxLocParts,

// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
starSlashStar = "*/".concat("*");
allTypes = "*/".concat("*");

// #8138, IE may throw an exception when accessing
// a field from window.location if document.domain has been set
Expand Down Expand Up @@ -334,7 +334,7 @@ jQuery.extend({
html: "text/html",
text: "text/plain",
json: "application/json, text/javascript",
"*": starSlashStar
"*": allTypes
},

contents: {
Expand Down Expand Up @@ -705,7 +705,7 @@ jQuery.extend({
jqXHR.setRequestHeader(
"Accept",
s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + starSlashStar + "; q=0.01" : "" ) :
s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
s.accepts[ "*" ]
);

Expand Down

0 comments on commit 9b17452

Please sign in to comment.