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 a new issue