X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fxhr.js;h=66be46362b84a1e8d03b3b2e39ed3ccba3d65c04;hb=a500d33c5d63aa22f024472b2cc8c15c624a342e;hp=401619c11c2e06d8811eecf869967033985f8593;hpb=9b9d270e3d697d8129147d03807c4e37b23120b7;p=jquery.git diff --git a/src/xhr.js b/src/xhr.js index 401619c..66be463 100644 --- a/src/xhr.js +++ b/src/xhr.js @@ -1,4 +1,4 @@ -(function( jQuery , undefined ) { +(function( jQuery ) { var rquery = /\?/, rhash = /#.*$/, @@ -7,7 +7,7 @@ var rquery = /\?/, rts = /([?&])_=[^&]*/, rurl = /^(\w+:)?\/\/([^\/?#]+)/, - slice = Array.prototype.slice, + sliceFunc = Array.prototype.slice, isFunction = jQuery.isFunction; @@ -80,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 ); @@ -600,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() { @@ -645,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 ) { @@ -923,4 +923,4 @@ function determineDataType( s , ct , text , xml ) { return response; } -})(jQuery); +})( jQuery );