Opened 16 years ago
Closed 16 years ago
#1167 closed bug (fixed)
.removeClass("") removes every class
Reported by: | arrix | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1.3 |
Component: | core | Version: | 1.1.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Passing an empty string("") to .removeClass() will cause every class to be removed. $('#someid').removeClass(""); => all classes of #someid removed
Change History (2)
comment:1 follow-up: 2 Changed 16 years ago by
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
The root of the problem seems to be in jQuery.className.has. You can also find a similar error using the is method with a blank string. It will always be true.