Commit facb2324 authored by John Resig's avatar John Resig

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

parent 0ababc8f
......@@ -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'), '');
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment