Skip to content
Browse files

Stop calling action twice

Action is called twice? This seems broken. Removed second call.
  • Loading branch information...
1 parent 1c7a767 commit ece575ebad7fdd6146ebed25fe675739e7b24ecf @gar3thjon3s committed
Showing with 1 addition and 4 deletions.
  1. +1 −4 jquery.contextmenu.js
View
5 jquery.contextmenu.js
@@ -62,10 +62,7 @@ jQuery.fn.contextPopup = function(menuData) {
} else if (item.action) {
row.find('a').click(function () { item.action(e); });
}
-
- if (item.action) {
- row.find('a').click(function(){ item.action(e); });
- }
+
} else {
$('<li class="' + settings.seperatorClass + '"></li>').appendTo(menu);
}

0 comments on commit ece575e

Please sign in to comment.
Something went wrong with that request. Please try again.