davist11/jQuery-One-Page-Nav — Issue #7: curClass is not cleared on sections outside the navigation
Author: apaatsio
Created: 2011-12-22 14:49:12+00:00
State: open

When you have a section on the page that is not in the navigation, the curClass isn't removed.

Try adding ```

hello

``` at the top of ```#container``` in the example. Now when you scroll down the menu items change as expected. But when you scroll back to the top of the page, it shows that the current item is section 1 even though we've clearly scrolled above it. In this case none of the menu items shouldn't have curClass.