Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when higher level selector does not exist #31

Closed
ViktorQvarfordt opened this issue May 31, 2013 · 1 comment
Closed

Error when higher level selector does not exist #31

ViktorQvarfordt opened this issue May 31, 2013 · 1 comment
Assignees
Labels

Comments

@ViktorQvarfordt
Copy link

Maybe its not considered semantically meaningful to have something like the following

<h1>Level 1 header</h1>
<h3>Level 3 header</h3>

But tocify fails with error

Uncaught TypeError: Cannot read property 'top' of undefined, jquery.tocify.js:564

See this demonstration.

@ghost ghost assigned gfranko Jul 5, 2013
@gfranko
Copy link
Owner

gfranko commented Jul 5, 2013

Your example only included the h3 header. In the latest release, I make sure an error is not thrown when there is only one selector used.

@gfranko gfranko closed this as completed Jul 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants