Restores var names to satisfy the crock-machine. Supplements #9008
This commit is contained in:
parent
ca367674c1
commit
bf678fd9d6
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue