Opened 16 years ago
Closed 16 years ago
#762 closed bug (fixed)
toggleClass fails due to jQuery.className.has changes
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core | Version: | 1.1a |
Keywords: | className, toggleClass | Cc: | |
Blocked by: | Blocking: |
Description
Due to the change in jQuery.className.has, which now expects a String as its first argument, toggleClass fails.
The fix:
toggleClass: function( c ){ jQuery.className[ jQuery.className.has(this.className,c) ? "remove" : "add" ](this, c); },
Although I'd prefer that jQuery.className.has accepted both a String or a node as its first argument.
Note: See
TracTickets for help on using
tickets.
Fixed in SVN. jQuery.className.has now accepts both node and className.