Commit 2e129759 authored by jaubourg's avatar jaubourg

More variable renaming to avoid conflicts when module closures are removed.

parent 9fa9a570
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
var jsc = jQuery.now(), var jsc = jQuery.now(),
jsre = /\=\?(&|$)/, jsre = /\=\?(&|$)/,
rquerymark = /\?/; rquery_jsonp = /\?/;
// Default jsonp callback name // Default jsonp callback name
jQuery.ajaxSettings.jsonpCallback = function() { jQuery.ajaxSettings.jsonpCallback = function() {
...@@ -29,7 +29,7 @@ jQuery.xhr.prefilter( function(s) { ...@@ -29,7 +29,7 @@ jQuery.xhr.prefilter( function(s) {
data = s.url == url && typeof(s.data) === "string" ? s.data.replace(jsre, "=" + jsonpCallback + "$1") : s.data; data = s.url == url && typeof(s.data) === "string" ? s.data.replace(jsre, "=" + jsonpCallback + "$1") : s.data;
if ( url == s.url && data == 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; s.url = url;
......
(function( jQuery ) { (function( jQuery ) {
var rquery = /\?/, var rquery_xhr = /\?/,
rhash = /#.*$/, rhash = /#.*$/,
rheaders = /^(.*?):\s*(.*?)\r?$/mg, // IE leaves an \r character at EOL rheaders = /^(.*?):\s*(.*?)\r?$/mg, // IE leaves an \r character at EOL
rnoContent = /^(?:GET|HEAD)$/, rnoContent = /^(?:GET|HEAD)$/,
...@@ -109,7 +109,7 @@ jQuery.xhr = function( _native ) { ...@@ -109,7 +109,7 @@ jQuery.xhr = function( _native ) {
// If data is available, append data to url // If data is available, append data to url
if ( data ) { if ( data ) {
url += (rquery.test(url) ? "&" : "?") + data; url += (rquery_xhr.test(url) ? "&" : "?") + data;
} }
// Add anti-cache in url if needed // Add anti-cache in url if needed
...@@ -120,7 +120,7 @@ jQuery.xhr = function( _native ) { ...@@ -120,7 +120,7 @@ jQuery.xhr = function( _native ) {
ret = url.replace(rts, "$1_=" + ts ); ret = url.replace(rts, "$1_=" + ts );
// if nothing was replaced, add timestamp to the end // 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; s.url = url;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment