Renamed variables to avoid conflicts when Makefile removes internal closures.
This commit is contained in:
parent
ab74d8e6a0
commit
a500d33c5d
2 changed files with 7 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
var jsc = jQuery.now(),
|
var jsc = jQuery.now(),
|
||||||
jsre = /\=\?(&|$)/,
|
jsre = /\=\?(&|$)/,
|
||||||
rquery = /\?/;
|
rquerymark = /\?/;
|
||||||
|
|
||||||
// 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) {
|
||||||
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 += (rquery.test( url ) ? "&" : "?") + jsonp + "=" + jsonpCallback;
|
url = url += (rquerymark.test( url ) ? "&" : "?") + jsonp + "=" + jsonpCallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
s.url = url;
|
s.url = url;
|
||||||
|
|
10
src/xhr.js
10
src/xhr.js
|
@ -7,11 +7,9 @@ var rquery = /\?/,
|
||||||
rts = /([?&])_=[^&]*/,
|
rts = /([?&])_=[^&]*/,
|
||||||
rurl = /^(\w+:)?\/\/([^\/?#]+)/,
|
rurl = /^(\w+:)?\/\/([^\/?#]+)/,
|
||||||
|
|
||||||
slice = Array.prototype.slice,
|
sliceFunc = Array.prototype.slice,
|
||||||
|
|
||||||
isFunction = jQuery.isFunction,
|
isFunction = jQuery.isFunction;
|
||||||
|
|
||||||
undefined;
|
|
||||||
|
|
||||||
// Creates a jQuery xhr object
|
// Creates a jQuery xhr object
|
||||||
jQuery.xhr = function( _native ) {
|
jQuery.xhr = function( _native ) {
|
||||||
|
@ -602,7 +600,7 @@ jQuery.xhr = function( _native ) {
|
||||||
jQuery.each(["bind","unbind"], function(_, name) {
|
jQuery.each(["bind","unbind"], function(_, name) {
|
||||||
xhr[name] = function(type) {
|
xhr[name] = function(type) {
|
||||||
|
|
||||||
var functors = slice.call(arguments,1),
|
var functors = sliceFunc.call(arguments,1),
|
||||||
list;
|
list;
|
||||||
|
|
||||||
jQuery.each(type.split(/\s+/g), function() {
|
jQuery.each(type.split(/\s+/g), function() {
|
||||||
|
@ -647,7 +645,7 @@ function createCBList() {
|
||||||
// Remove autoFire to keep bindings in order
|
// Remove autoFire to keep bindings in order
|
||||||
autoFire = 0;
|
autoFire = 0;
|
||||||
|
|
||||||
var args = slice.call( fireArgs , 2 );
|
var args = sliceFunc.call( fireArgs , 2 );
|
||||||
|
|
||||||
// Execute callbacks
|
// Execute callbacks
|
||||||
while ( flag && functors.length ) {
|
while ( flag && functors.length ) {
|
||||||
|
|
Loading…
Reference in a new issue