Aieeeeee!! removeClass bug fixed. I'm so dumb.

1.7/enhancement_8685
John Resig 2006-05-02 19:03:07 +00:00
parent 0ababc8fea
commit facb2324f9
1 changed files with 1 additions and 3 deletions

4
jquery/jquery.js vendored
View File

@ -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'), '');
});