mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Aieeeeee!! removeClass bug fixed. I'm so dumb.
This commit is contained in:
parent
0ababc8fea
commit
facb2324f9
4
jquery/jquery.js
vendored
4
jquery/jquery.js
vendored
@ -108,9 +108,7 @@ function $(a,c) {
|
||||
},
|
||||
removeClass: function(c) {
|
||||
return this.each(function(){
|
||||
if ( c == null )
|
||||
this.className = '';
|
||||
else
|
||||
this.className = c == null ? '' :
|
||||
this.className.replace(
|
||||
new RegExp('(^|\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), '');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user