jimmynotjim / scrollnav

A dependency free JavaScript plugin for auto generating single page navigation
http://scrollnav.com
MIT License
461 stars 127 forks source link

Release of v2.1.0 #33

Closed jimmynotjim closed 11 years ago

jimmynotjim commented 11 years ago

v2.1 adds support for public methods, a new destroy method, custom callbacks for init, render and destroy, and small bugfixes.

michael-benin-CN commented 11 years ago

Thank you for maintaining this project. Does this fix the issue if the DOM updates the scrollNav plugin also resets?

jimmynotjim commented 11 years ago

@michael-benin-CN Nope, updating the DOM is going to be on you. I don't want to add complexity or additional file size by having to monitor the target elements content. When you script in the changes to update the DOM, you should destroy scrollNav just prior, and re-init after the DOM change. The custom callback functions and the new destroy method should provide you plenty of options for doing this.