Use a semantic name for the variable.

This commit is contained in:
Dave Methvin 2011-08-23 08:47:34 -04:00
parent 771e637a51
commit 9b174520cc

View File

@ -45,7 +45,7 @@ var r20 = /%20/g,
ajaxLocParts, ajaxLocParts,
// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
starSlashStar = "*/".concat("*"); allTypes = "*/".concat("*");
// #8138, IE may throw an exception when accessing // #8138, IE may throw an exception when accessing
// a field from window.location if document.domain has been set // a field from window.location if document.domain has been set
@ -334,7 +334,7 @@ jQuery.extend({
html: "text/html", html: "text/html",
text: "text/plain", text: "text/plain",
json: "application/json, text/javascript", json: "application/json, text/javascript",
"*": starSlashStar "*": allTypes
}, },
contents: { contents: {
@ -705,7 +705,7 @@ jQuery.extend({
jqXHR.setRequestHeader( jqXHR.setRequestHeader(
"Accept", "Accept",
s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ? 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[ "*" ] s.accepts[ "*" ]
); );