Side navigation
#5962 closed bug (fixed)
Opened January 28, 2010 10:06AM UTC
Closed January 29, 2010 03:31AM UTC
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: |
Description
Hi,
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.
Attachments (0)
Change History (1)
Changed January 29, 2010 03:31AM UTC by comment:1
resolution: | → fixed |
---|---|
status: | new → closed |
Fixed, thanks!