diff --git a/jquery/jquery.js b/jquery/jquery.js index 4a960a90..b9cb311e 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -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'), ''); });