Skip to content

Commit

Permalink
Restores var names to satisfy the crock-machine. Supplements #9008
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Apr 29, 2011
1 parent ca36767 commit bf678fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/ajax.js
Expand Up @@ -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+))?)?/,

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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 ) {
Expand Down
8 changes: 4 additions & 4 deletions 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,
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/event.js
Expand Up @@ -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, "\\$&");
Expand Down

0 comments on commit bf678fd

Please sign in to comment.