Checkbox state inconsistent in click event handler
There is a significant difference between actually clicking an element and the triggering of the click event handlers bound to that element by JQuery. Attached to this ticket is a test script and its HTML to reproduce this "bug". What happens is:
- I click the checkbox and see "State: ON" in the Firebug console. I click it a few times to verify that the correct state is always reported.
- I click the button which in turn programmatically triggers the click event bound to the checkbox. Now the INCORRECT state is reported every time. This is probably due to the bound event handler being triggered before any internal behavior.