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 slidr isn't around #19

Closed
renege opened this issue Jan 2, 2014 · 1 comment
Closed

Error when slidr isn't around #19

renege opened this issue Jan 2, 2014 · 1 comment

Comments

@renege
Copy link

renege commented Jan 2, 2014

[Slidr] Could not find element with id [slidr-xx]. xx.min_3.js:47
Uncaught TypeError: Cannot call method 'add' of undefined 

Is there a way to fix this without jQuery?

@bchanx
Copy link
Owner

bchanx commented Jan 3, 2014

Hi @renege,

This seems like it should be the developer's responsibility to make sure the element actually exists before trying to create a slidr. Could you give me a use case of when this is not preferred, and having a noop for not existant slidr's is actually useful?

@bchanx bchanx closed this as completed Feb 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants