Open avandecreme opened 10 years ago
I don't remember why I did that either. I think it would be safe to remove the condition. Would you mind sending a PR to the dev
branch to fix this?
PR submitted :)
Sorry for the "me too" but I must say this is exquisite timing - thanks for both tocify and for this PR!
If showAndHide is set to false and one use a link with an anchor (for example http://gregfranko.com/jquery.tocify.js/#OptionsAPI ) the scrolling won't happen.
There is a specific test about it in the code: https://github.com/gfranko/jquery.tocify.js/blob/master/src/javascripts/jquery.tocify.js#L322-L327 However I can't think of any case where this test is necessary.
Removing the condition fixes the problem.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.