Extra spaces weren't being removed with removeClass - but I haven't found a good workaround yet.
This commit is contained in:
parent
904b1c337e
commit
cd297dd9eb
4
jquery/jquery.js
vendored
4
jquery/jquery.js
vendored
|
@ -106,7 +106,9 @@ function $(a,c) {
|
||||||
},
|
},
|
||||||
removeClass: function(c) {
|
removeClass: function(c) {
|
||||||
return this.each(function(){
|
return this.each(function(){
|
||||||
this.className = c == null ? '' :
|
if ( c == null )
|
||||||
|
this.className = '';
|
||||||
|
else
|
||||||
this.className.replace(
|
this.className.replace(
|
||||||
new RegExp('(^|\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), '');
|
new RegExp('(^|\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), '');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue