Ticket #1681 (closed enhancement: fixed)
More powerful toggleClass()
|Reported by:||dimi||Owned by:||flesler|
|Keywords:||Cc:||dimi, ecentinela, genezys|
A lot of times you need to add/remove a class to an element based on a boolean. toggleClass() should take an optional second parameter that would control if the toggle will add or remove the class.
The added complexity would be absolutely minimal (a few more characters), but it would be really useful.
- Cc dimi, ecentinela, genezys added
- need changed from Test Case to Patch
- Status changed from new to assigned
- Owner set to flesler
- Milestone changed from 1.2.4 to 1.3