You need to pass the event object as parameter, if you don't you're
accessing the global window.event object which differs across
browsers:

$('a').click(function(e){
   e.stopPropagation();
});

On Apr 14, 3:41 pm, "@oscargodson" <oscargod...@gmail.com> wrote:
> I got this to work, so this isn't a issue anymore, but I'm curious if
> this is a bug and I should report it, or if it's a bug everywhere
> else :)
>
> $('a').click(function(){
>    //Following works in Firefox, but not in Safari 3-4
>    //event.stopPropagation();
>    //Works in both Safari as well as Firefox
>    this.event.stopPropagation();
>
> });
>
> Is that how you were supposed to write it? In most tuts I have read
> it's always just event.stopPropagation();

Reply via email to