I have a selector that binds a click event which will remove the popup. However, I only want the selector to handle the click, instead of the children of the selector to be
$('.popup-content').bind('click', function(e)
{
e.stopPropagation();
});
or
$('.popup-content').bind('click', function(e)
{
return false;
});
In your case - it's same, but sometimes you can't do such thing without e.stopPropagation(). For example:
$('.popup-content a').bind('click', function(e)
{
e.stopPropagation();
return confirm("Are you sure?");
});