Skip to content

Commit

Permalink
Merge branch 'Sweet-Bob-check-menu-on-destroy'
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrala committed Oct 25, 2016
2 parents 47e4e69 + 6de698b commit 5522249
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jquery.contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1649,6 +1649,10 @@
// get proper options
var context = o.context;
$.each(menus, function (ns, o) {

if (!o) {
return true;
}

// Is this menu equest to the context called from
if (!$(context).is(o.selector)) {
Expand Down

0 comments on commit 5522249

Please sign in to comment.