aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-08-23 08:47:34 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-08-23 08:47:34 -0400
commit9b174520cce97a0cb9835b0e0b7d40be0f828212 (patch)
tree723b28f2077ca906033884dd5ffc2914b2796153 /src/ajax.js
parent771e637a5193c63bd18f6edae8af3787a46f003e (diff)
downloadjquery-9b174520cce97a0cb9835b0e0b7d40be0f828212.tar.gz
jquery-9b174520cce97a0cb9835b0e0b7d40be0f828212.zip
Use a semantic name for the variable.
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ajax.js b/src/ajax.js
index e112efa7d..18bf34508 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -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
@@ -334,7 +334,7 @@ jQuery.extend({
html: "text/html",
text: "text/plain",
json: "application/json, text/javascript",
- "*": starSlashStar
+ "*": allTypes
},
contents: {
@@ -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[ "*" ]
);