aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2012-06-15 21:01:44 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-06-15 21:01:44 -0400
commita101e81bde71e94170f1fa899432cbe8150910f9 (patch)
tree9d3a75a1f5f14267e8ba6e1058d2c4e81c45c8f0 /src/attributes.js
parent46d680458b74fcf956f6161a2b73b6b00fc2541d (diff)
downloadjquery-a101e81bde71e94170f1fa899432cbe8150910f9.tar.gz
jquery-a101e81bde71e94170f1fa899432cbe8150910f9.zip
Interim take on cross-module variables, closes gh-817.
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 1b79ae44a..23a4fddd0 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -1,5 +1,4 @@
var rclass = /[\n\t\r]/g,
- rspace = /\s+/,
rreturn = /\r/g,
rtype = /^(?:button|input)$/i,
rfocusable = /^(?:button|input|object|select|textarea)$/i,
@@ -45,7 +44,7 @@ jQuery.fn.extend({
}
if ( value && typeof value === "string" ) {
- classNames = value.split( rspace );
+ classNames = value.split( core_rspace );
for ( i = 0, l = this.length; i < l; i++ ) {
elem = this[ i ];
@@ -81,7 +80,7 @@ jQuery.fn.extend({
}
if ( (value && typeof value === "string") || value === undefined ) {
- classNames = ( value || "" ).split( rspace );
+ classNames = ( value || "" ).split( core_rspace );
for ( i = 0, l = this.length; i < l; i++ ) {
elem = this[ i ];
@@ -121,7 +120,7 @@ jQuery.fn.extend({
i = 0,
self = jQuery( this ),
state = stateVal,
- classNames = value.split( rspace );
+ classNames = value.split( core_rspace );
while ( (className = classNames[ i++ ]) ) {
// check each className given, space seperated list
@@ -359,7 +358,7 @@ jQuery.extend({
value = value.toLowerCase();
}
- attrNames = value.split( rspace );
+ attrNames = value.split( core_rspace );
l = attrNames.length;
for ( ; i < l; i++ ) {