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
1 changed files with 3 additions and 1 deletions
4
jquery/jquery.js
vendored
4
jquery/jquery.js
vendored
|
@ -106,7 +106,9 @@ function $(a,c) {
|
|||
},
|
||||
removeClass: function(c) {
|
||||
return this.each(function(){
|
||||
this.className = c == null ? '' :
|
||||
if ( c == null )
|
||||
this.className = '';
|
||||
else
|
||||
this.className.replace(
|
||||
new RegExp('(^|\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), '');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue