git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ababc8
)
Aieeeeee!! removeClass bug fixed. I'm so dumb.
author
John Resig
<jeresig@gmail.com>
Tue, 2 May 2006 19:03:07 +0000
(19:03 +0000)
committer
John Resig
<jeresig@gmail.com>
Tue, 2 May 2006 19:03:07 +0000
(19:03 +0000)
jquery/jquery.js
patch
|
blob
|
history
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
4a960a9
..
b9cb311
100644
(file)
--- 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'), '');
});