Skip to content

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