jquery stop event propagation and continue 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();
});