]> source.dussan.org Git - jquery.git/commitdiff
Renamed variables to avoid conflicts when Makefile removes internal closures.
authorjaubourg <aubourg.julian@gmail.com>
Fri, 10 Dec 2010 03:16:56 +0000 (04:16 +0100)
committerjaubourg <aubourg.julian@gmail.com>
Fri, 10 Dec 2010 03:16:56 +0000 (04:16 +0100)
src/transports/jsonp.js
src/xhr.js

index 228a4d3db1e36bebdc53f7ee3c421dfec67a1ffc..d73781f5c7b7b7e3a3b2be31b95ab2d2c6e0186a 100644 (file)
@@ -2,7 +2,7 @@
 
 var jsc = jQuery.now(),
        jsre = /\=\?(&|$)/,
-       rquery = /\?/;
+       rquerymark = /\?/;
 
 // Default jsonp callback name
 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;
                        
                if ( url == s.url && data == s.data ) {
-                       url = url += (rquery.test( url ) ? "&" : "?") + jsonp + "=" + jsonpCallback;
+                       url = url += (rquerymark.test( url ) ? "&" : "?") + jsonp + "=" + jsonpCallback;
                }
                
                s.url = url;
index 649a8cd47399b84d75df67474e06b711978d9a63..66be46362b84a1e8d03b3b2e39ed3ccba3d65c04 100644 (file)
@@ -7,11 +7,9 @@ var rquery = /\?/,
        rts = /([?&])_=[^&]*/,
        rurl = /^(\w+:)?\/\/([^\/?#]+)/,
        
-       slice = Array.prototype.slice,
+       sliceFunc = Array.prototype.slice,
        
-       isFunction = jQuery.isFunction,
-       
-       undefined;
+       isFunction = jQuery.isFunction;
        
 // Creates a jQuery xhr object
 jQuery.xhr = function( _native ) {
@@ -82,7 +80,7 @@ jQuery.xhr = function( _native ) {
                        // Other Variables
                        transportDataType,
                        i;
-
+                       
                // Convert data if not already a string
                if ( data && s.processData && typeof data != "string" ) {
                        data = s.data = jQuery.param( data , s.traditional );
@@ -602,7 +600,7 @@ jQuery.xhr = function( _native ) {
        jQuery.each(["bind","unbind"], function(_, name) {
                xhr[name] = function(type) {
                        
-                       var functors = slice.call(arguments,1),
+                       var functors = sliceFunc.call(arguments,1),
                                list;
                                
                        jQuery.each(type.split(/\s+/g), function() {
@@ -647,7 +645,7 @@ function createCBList() {
                                // Remove autoFire to keep bindings in order
                                autoFire = 0;
                                        
-                               var args = slice.call( fireArgs , 2 );
+                               var args = sliceFunc.call( fireArgs , 2 );
                                        
                                // Execute callbacks
                                while ( flag && functors.length ) {