var jsc = jQuery.now(),
jsre = /\=\?(&|$)/,
- rquery = /\?/;
+ rquerymark = /\?/;
// 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 += (rquery.test( url ) ? "&" : "?") + jsonp + "=" + jsonpCallback;
+ url = url += (rquerymark.test( url ) ? "&" : "?") + jsonp + "=" + jsonpCallback;
}
s.url = url;
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 ) {
// 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 );
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() {
// 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 ) {