]> source.dussan.org Git - jquery.git/commitdiff
Restores var names to satisfy the crock-machine. Supplements #9008 361/head
authorRick Waldron <waldron.rick@gmail.com>
Fri, 29 Apr 2011 02:24:40 +0000 (22:24 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Fri, 29 Apr 2011 02:26:34 +0000 (22:26 -0400)
src/ajax.js
src/attributes.js
src/event.js

index 2d048479ce9c8d89818dd6ee27dbccbc5e818d67..a16717b00add23875f256b3d189e6bf51625ac73 100644 (file)
@@ -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 ) {
index 43d72ae9b9498af920cd1fe5b7a6695aec3a0cfc..ade38bcaf60bec5434bf9ff0079fa1da48650219 100644 (file)
@@ -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
index f712f0deb4fef1d72274c582afea99165a9b9e07..05e79d3583761cda0f5d5da01463accb35051659 100644 (file)
@@ -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, "\\$&");