Skip to main content

Bug Tracker

Side navigation

#762 closed bug (fixed)

Opened January 08, 2007 12:53PM UTC

Closed January 08, 2007 04:13PM UTC

toggleClass fails due to jQuery.className.has changes

Reported by: choan.galvez@gmail.c 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.

Attachments (0)
Change History (1)

Changed January 08, 2007 04:13PM UTC by joern comment:1

resolution: → fixed
status: newclosed

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