$(".container").on("contextmenu", ".photos-bottom .albums li", function(e) {
$('html').bind('click', function (event) {
alert(id);
});
return false;
});
when I right click (for the contextmenu) multiple times and then left click html once, it triggers the alert the number of times that I right clicked.
So if I right click once, then left click, it shows a popup once.
If I right click three times, then left click, it shows the popup three times.
Why is this so?
$('html').unbind('click').bind('click')fixed it.