j query stopPropagation(callback) 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();
});