diff --git a/jquery/jquery.js b/jquery/jquery.js index 4a960a902..b9cb311ea 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'), ''); });