Is it possible to somehow catch event, if it's propagation was stopped?
$('span').click(function(e) { e.stopPropagation(); });
Maybe there are some kind of global handler? Like:
Event.registerHandler('click', function(e) { alert('thanks'); });
There should be no additional code for regular handlers.