aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-22 09:46:21 -0400
committerjeresig <jeresig@gmail.com>2010-09-22 09:46:21 -0400
commit8e1d3697109e70ccdcb29e269af251216de057a8 (patch)
treef6677c3ea6c83513f7bdff8bf0451914bf76d8fb /src/attributes.js
parent9dc6e0c572b9c809a3a4c123071d96d48a01dd1c (diff)
downloadjquery-8e1d3697109e70ccdcb29e269af251216de057a8.tar.gz
jquery-8e1d3697109e70ccdcb29e269af251216de057a8.zip
Some minor lint fixes for the RegExp.
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/attributes.js b/src/attributes.js
index b0a0e91fa..73dee368b 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -1,7 +1,7 @@
(function( jQuery ) {
var rclass = /[\n\t]/g,
- rspace = /\s+/,
+ rspaces = /\s+/,
rreturn = /\r/g,
rspecialurl = /^(?:href|src|style)$/,
rtype = /^(?:button|input)$/i,
@@ -32,7 +32,7 @@ jQuery.fn.extend({
}
if ( value && typeof value === "string" ) {
- var classNames = (value || "").split( rspace );
+ var classNames = (value || "").split( rspaces );
for ( var i = 0, l = this.length; i < l; i++ ) {
var elem = this[i];
@@ -66,7 +66,7 @@ jQuery.fn.extend({
}
if ( (value && typeof value === "string") || value === undefined ) {
- var classNames = (value || "").split(rspace);
+ var classNames = (value || "").split( rspaces );
for ( var i = 0, l = this.length; i < l; i++ ) {
var elem = this[i];
@@ -104,7 +104,7 @@ jQuery.fn.extend({
// toggle individual class names
var className, i = 0, self = jQuery(this),
state = stateVal,
- classNames = value.split( rspace );
+ classNames = value.split( rspaces );
while ( (className = classNames[ i++ ]) ) {
// check each className given, space seperated list