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

Making the plugin stateful for ability to destroy/reset #41

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bobbyrenwick
Copy link

We're using jQuery-menu-aim in a single page app and so needed the ability to destroy the event listeners that it sets up and also to reset the menu-aim to its initial state.

This is 100% backwards compatible and should allow for greater extensibility.

@arun057
Copy link

arun057 commented Nov 5, 2013

+1

But this doesnt fix #14 with out returning true to the exitMenu option.

@philfreo
Copy link

👍 for ability to cleanup

@slambdin1
Copy link

I'm not able to destroy the menu when i use the .menuAim('destroy') function. I pasted a snippet of my code below. Any ideas?

var navBar = $('.ko-nav');
navBar.menuAim({
activate: activateSubmenu,
deactivate: deactivateSubmenu,
rowSelector: listOfRows,
exitMenu: function() { return true; },
submenuDirection: "below"
});
.....
.....

$('.ko-nav').menuAim("destroy");

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

Successfully merging this pull request may close these issues.

5 participants