Skip to main content

Bug Tracker

Side navigation

#9693 closed bug (fixed)

Opened June 29, 2011 09:50AM UTC

Closed June 29, 2011 01:46PM UTC

Inconsistency of document and code for .toggleClass

Reported by: anferneeg Owned by:
Priority: low Milestone:
Component: attributes Version: 1.6.1
Keywords: neededdocs Cc:
Blocked by: Blocking:

In document, it said

.toggleClass( function(index, class), [switch] )

But more precisely, the function should be something like function(index, class, switch).

Source code,

jQuery( this ).toggleClass(, i, this.className, stateVal), stateVal );

and sample code:

Either document or code should be modified.

Attachments (0)
Change History (1)

Changed June 29, 2011 01:46PM UTC by timmywil comment:1

component: unfiledattributes
keywords: → neededdocs
priority: undecidedlow
resolution: → fixed
status: newclosed

Thank you! docs updated: