jgallen23/toc — pull request #14 by allspiritseve (2012-10-05 01:29:17+00:00)
Title: Add headerText and itemClass options

1. headerText() was in the docs, but not the code. I needed it, so I added it.

2. I also needed a way to specify the item class, so I added itemClass()– I was using fieldset legends as headers, and that didn't allow me a way to specify a hierarchy. By making it a callback I can set data attributes on the legend and use those in the class instead of the tag name.