Ⓙⓐⓚⓔ schrieb:
> the simple way to stop bubbling is to return false.
> the only time I needed anything else was to activate the href after
> the click got caught.
>                                       if (!e) {
>                                               var e = window.event
>                                               e.cancelBubble = true
>                                       } else if (e.stopPropagation)
>                                               e.stopPropagation()
>
> is often overkill.
>   
jQuery provides an event object and both stopPropagation and 
preventDefault methods to your event handlers. The above code can be 
reduced to this "e.stopPropagation();"

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to