Skip to content

removing destroyed context menu's from the DOM#1

Open
rovolution wants to merge 2 commits intojakiestfu:masterfrom
rovolution:master
Open

removing destroyed context menu's from the DOM#1
rovolution wants to merge 2 commits intojakiestfu:masterfrom
rovolution:master

Conversation

@rovolution
Copy link
Copy Markdown

hey jakiestfu,

Thanks for this awesome plugin btw! Hands down the best bootstrap context menu plugin I've worked with.

This pull request is to fix an issue I had with it in one of the applications I am working on.

In my use case, I have a graph consisting of nodes and edges, where each node has its own context menu. A user is constantly loading different graphs, which requires the frequent removal/addition of nodes.

I noticed that whenever I destroyed a context menu on a node, it was not actually removing it from the DOM. Consequently my DOM would become populated with these 'ghost' context menus. This fix removes the context menu from the DOM when the destroy call is made.

Let me know what you think and if I should change anything.

Thanks!

@rovolution
Copy link
Copy Markdown
Author

hey @jakiestfu, did you ever get a chance to check this out?

Thanks!

@Misiu
Copy link
Copy Markdown

Misiu commented Jul 25, 2014

+1 on this pull request.

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.

2 participants