Collapse plugin does not correctly set the "collapsed" class on accordion heading links
Created by: dynamicdan
This line:
$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
Only works to remove or add the collapsed class on the element clicked. It does not updated the element that was previously expanded/clicked. So the class usage becomes inconsistent quickly and stops me easily styling stuff.
Note diff b/w accordion-heading and accordion-body.