Bug Tracker

Opened 16 years ago

Closed 16 years ago

#762 closed bug (fixed)

toggleClass fails due to jQuery.className.has changes

Reported by: choan.galvez@… Owned by:
Priority: major Milestone:
Component: core Version: 1.1a
Keywords: className, toggleClass Cc:
Blocked by: Blocking:


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.

Change History (1)

comment:1 Changed 16 years ago by joern

Resolution: fixed
Status: newclosed

Fixed in SVN. jQuery.className.has now accepts both node and className.

Note: See TracTickets for help on using tickets.