Bug Tracker

Opened 13 years ago

Closed 13 years ago

#5962 closed bug (fixed)

Missing a "(" in the example

Reported by: liwen Owned by:
Priority: minor Milestone: 1.4.2
Component: unfiled Version: 1.4.1
Keywords: Cc:
Blocked by: Blocking:



The example for .toggleClass( function(index, class), [ switch ] ) in api:

$('div.foo').toggleClass(function() {

if ($(this).parent().is('.bar') {

return 'happy';

} else {

return 'sad';



I think the ")" after the code "('.bar')" is missing.

Change History (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: fixed
Status: newclosed

Fixed, thanks!

Note: See TracTickets for help on using tickets.