Skip to content

Commit ece575e

Browse files
committed
Stop calling action twice
Action is called twice? This seems broken. Removed second call.
1 parent 1c7a767 commit ece575e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

jquery.contextmenu.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ jQuery.fn.contextPopup = function(menuData) {
6262
} else if (item.action) {
6363
row.find('a').click(function () { item.action(e); });
6464
}
65-
66-
if (item.action) {
67-
row.find('a').click(function(){ item.action(e); });
68-
}
65+
6966
} else {
7067
$('<li class="' + settings.seperatorClass + '"></li>').appendTo(menu);
7168
}

0 commit comments

Comments
 (0)