diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2011-04-28 22:24:40 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2011-04-28 22:26:34 -0400 |
commit | bf678fd9d6209f77a37b9dd29e7ea621cf3bd3f7 (patch) | |
tree | c9d30a7140498ea0ddeded24f9c6d439821749d2 /src | |
parent | ca367674c1f741fef01780ba09431392be8a0e49 (diff) | |
download | jquery-bf678fd9d6209f77a37b9dd29e7ea621cf3bd3f7.tar.gz jquery-bf678fd9d6209f77a37b9dd29e7ea621cf3bd3f7.zip |
Restores var names to satisfy the crock-machine. Supplements #9008
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 6 | ||||
-rw-r--r-- | src/attributes.js | 8 | ||||
-rw-r--r-- | src/event.js | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/ajax.js b/src/ajax.js index 2d048479c..a16717b00 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -13,7 +13,7 @@ var r20 = /%20/g, rquery = /\?/, rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, rselectTextarea = /^(?:select|textarea)/i, - rspaces = /\s+/, + rspacesAjax = /\s+/, rts = /([?&])_=[^&]*/, rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/, @@ -71,7 +71,7 @@ function addToPrefiltersOrTransports( structure ) { } if ( jQuery.isFunction( func ) ) { - var dataTypes = dataTypeExpression.toLowerCase().split( rspaces ), + var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ), i = 0, length = dataTypes.length, dataType, @@ -599,7 +599,7 @@ jQuery.extend({ s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); // Extract dataTypes list - s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspaces ); + s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax ); // Determine if a cross-domain request is in order if ( s.crossDomain == null ) { diff --git a/src/attributes.js b/src/attributes.js index 43d72ae9b..ade38bcaf 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -1,7 +1,7 @@ (function( jQuery ) { var rclass = /[\n\t\r]/g, - rspaces = /\s+/, + rspace = /\s+/, rreturn = /\r/g, rtype = /^(?:button|input)$/i, rfocusable = /^(?:button|input|object|select|textarea)$/i, @@ -43,7 +43,7 @@ jQuery.fn.extend({ } if ( value && typeof value === "string" ) { - var classNames = (value || "").split( rspaces ); + var classNames = (value || "").split( rspace ); for ( var i = 0, l = this.length; i < l; i++ ) { var elem = this[i]; @@ -79,7 +79,7 @@ jQuery.fn.extend({ } if ( (value && typeof value === "string") || value === undefined ) { - var classNames = (value || "").split( rspaces ); + var classNames = (value || "").split( rspace ); for ( var i = 0, l = this.length; i < l; i++ ) { var elem = this[i]; @@ -120,7 +120,7 @@ jQuery.fn.extend({ i = 0, self = jQuery( this ), state = stateVal, - classNames = value.split( rspaces ); + classNames = value.split( rspace ); while ( (className = classNames[ i++ ]) ) { // check each className given, space seperated list diff --git a/src/event.js b/src/event.js index f712f0deb..05e79d358 100644 --- a/src/event.js +++ b/src/event.js @@ -4,7 +4,7 @@ var hasOwn = Object.prototype.hasOwnProperty, rnamespaces = /\.(.*)$/, rformElems = /^(?:textarea|input|select)$/i, rperiod = /\./g, - rspaces = /\s+/g, + rspaces = / /g, rescape = /[^\w\s.|`]/g, fcleanup = function( nm ) { return nm.replace(rescape, "\\$&"); |