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

Provide a destroy method #7

Closed
hackuun opened this issue Oct 16, 2017 · 2 comments
Closed

Provide a destroy method #7

hackuun opened this issue Oct 16, 2017 · 2 comments

Comments

@hackuun
Copy link

hackuun commented Oct 16, 2017

I have a SPA and I don't want Menuspy on other pages beside where I exactly put it.
Right now, even if I navigate from the page where I required menuspy, it still exist.
Please provide a method to destroy menuspy.

@lcdsantos
Copy link
Owner

Added in v.1.2.0.

Usage:

var elm = document.querySelector('#main-header');
var ms = new MenuSpy(elm);

ms.destroy();

@ogous
Copy link

ogous commented Mar 5, 2019

@lcdsantos what about a refresh, update method?

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

3 participants