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

Destroy method #56

Closed
ufhy opened this issue Nov 13, 2016 · 1 comment
Closed

Destroy method #56

ufhy opened this issue Nov 13, 2016 · 1 comment

Comments

@ufhy
Copy link

ufhy commented Nov 13, 2016

how to use destroy method ?

$('#main-menu').smartmenus('destroy');

I found an error:
Uncaught TypeError: Cannot read property 'css' of null(…)

@vadikom
Copy link
Owner

vadikom commented Nov 15, 2016

This is the correct code and works fine on the default demo page:

http://vadikom.github.io/smartmenus/src/demo/

So I guess there is something wrong on your page that causes the issue. Please post some kind of demo if you like and I can check it.

@vadikom vadikom closed this as completed Dec 15, 2016
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