diff options
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 8 |
1 files changed, 4 insertions, 4 deletions
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 |