Skip to content

Commit 9b17452

Browse files
committed
Use a semantic name for the variable.
1 parent 771e637 commit 9b17452

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ajax.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var r20 = /%20/g,
4545
ajaxLocParts,
4646

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

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

340340
contents: {
@@ -705,7 +705,7 @@ jQuery.extend({
705705
jqXHR.setRequestHeader(
706706
"Accept",
707707
s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
708-
s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + starSlashStar + "; q=0.01" : "" ) :
708+
s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
709709
s.accepts[ "*" ]
710710
);
711711

0 commit comments

Comments
 (0)