jquery e.stoppropagation() code example
Example: jquery prevent event bubbling
$('myclass').bind('amodaldestroy'), function(event) {
....does something....
event.stopPropagation();
});
$('myclass').bind('amodaldestroy'), function(event) {
....does something....
event.stopPropagation();
});