jgallen23/toc — pull request #10 by dtaylor (2012-06-19 04:39:23+00:00)
Title: Added callback for when a new section is highlighted

My table of contents was taller than the page, so when I scrolled far enough down I could no longer see the active TOC section. This change adds a callback for when the highlighted element changes, and is passed the newly highlighted element. In my case, I am using the scrollintoview plugin [1] to make the section visible.

[1] https://github.com/litera/jquery-scrollintoview