var jsc = jQuery.now(),
jsre = /\=\?(&|$)/,
- rquerymark = /\?/;
+ rquery_jsonp = /\?/;
// Default jsonp callback name
jQuery.ajaxSettings.jsonpCallback = function() {
data = s.url == url && typeof(s.data) === "string" ? s.data.replace(jsre, "=" + jsonpCallback + "$1") : s.data;
if ( url == s.url && data == s.data ) {
- url = url += (rquerymark.test( url ) ? "&" : "?") + jsonp + "=" + jsonpCallback;
+ url = url += (rquery_jsonp.test( url ) ? "&" : "?") + jsonp + "=" + jsonpCallback;
}
s.url = url;
(function( jQuery ) {
-var rquery = /\?/,
+var rquery_xhr = /\?/,
rhash = /#.*$/,
rheaders = /^(.*?):\s*(.*?)\r?$/mg, // IE leaves an \r character at EOL
rnoContent = /^(?:GET|HEAD)$/,
// If data is available, append data to url
if ( data ) {
- url += (rquery.test(url) ? "&" : "?") + data;
+ url += (rquery_xhr.test(url) ? "&" : "?") + data;
}
// Add anti-cache in url if needed
ret = url.replace(rts, "$1_=" + ts );
// if nothing was replaced, add timestamp to the end
- url = ret + ((ret == url) ? (rquery.test(url) ? "&" : "?") + "_=" + ts : "");
+ url = ret + ((ret == url) ? (rquery_xhr.test(url) ? "&" : "?") + "_=" + ts : "");
}
s.url = url;