jquery/jquery-ui — pull request #610 by jzaefferer (2012-03-07 19:07:30+00:00)
Title: Accordion cleanup

Addresses 4 TODOs from Scott's last review. Fixes a bug where the active option wouldn't work when the accordion is disabled, updated the test to reflect the correct behaviour (only disable events).

Still unaddressed are two ARIA related issues, both about aria-selected and aria-expanded. I have no idea which one of those is actually correct to use here, or if we need the blur/focus calls when changing the attributes.

Also unaddressed is the one about the ui-accordion-disabled class. I have no idea why that exists. There's also ui-dialog-disabled, ui-slider-disabled and a few interactions-specific ones. We don't style them, so the only use might be for custom disabled styling when the disabled element is the root (the one getting ui-state-disabled), which is sometimes the case, but not for accordion.