yeah, I thought about it more today and if you are going to be mixing
bubbling events and global triggers it is up to you to ensure you handle the
events properly.
On Fri, Sep 19, 2008 at 7:21 PM, Dan Webb <[EMAIL PROTECTED]> wrote:
>
> Yes, strictly speaking, if you globally fire an event then you'd
> expect the bubble to happen.
>
> The other solution would be to automaticaly stop propagation for
> globally fired events. Not sure that it's what of expect though.
>
> ---
> Dan Webb
>
> [EMAIL PROTECTED]
> AIM: danwrong123
> Skype: danwrong
>
> On 19 Sep 2008, at 17:49, "Nathan Bubna" <[EMAIL PROTECTED]> wrote:
>
> >
> > On Fri, Sep 19, 2008 at 5:07 AM, Morgan Allen
> > <[EMAIL PROTECTED]> wrote:
> >> I just did a small experiment and noticed a potential problem.
> >> <div id="outer">
> >> <div id="inner" />
> >> </div>
> >>
> >> $('#outer').bind('x', doSomething);
> >> $('#inner').bind('x', doSomethingElse);
> >>
> >> If this where triggered globally, outer would trigger first
> >> (because I was
> >> bound first), then inner, then the event would bubble to outer again.
> >
> > you'd just need to have doSomethingElse stop propagation.
> >
> >> Although setting up events then triggering globally is probably a bad
> >> practice, if so, IGNORE ME. Cool addition to the event system.
> >>
> >> On Fri, Sep 19, 2008 at 10:59 AM, Dan Webb <[EMAIL PROTECTED]> wrote:
> >>>
> >>> Good point. I'll clean up after myself in the tests.
> >>>
> >>> On Sep 19, 8:45 am, "Jörn Zaefferer" <[EMAIL PROTECTED]
> >>> .com>
> >>> wrote:
> >>>> The only thing that I see that could be improved in the patch is
> >>>> the
> >>>> test, cleaning up the events bound to document (the testsuite
> >>>> doesn't
> >>>> handle that).
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> http://morglog.alleycatracing.com
> >> Lets make up more accronyms!
> >>
> >> http://www.alleycatracing.com
> >> LTABOTIIOFR! ROFL! ROFL! ROFL!
> >> Upcoming alley cats, reviews, touring logs, and a general
> >> congregation of
> >> bike nerdity.
> >>
> >>>
> >>
> >
> > >
>
> >
>
--
http://morglog.alleycatracing.com
Lets make up more accronyms!
http://www.alleycatracing.com
LTABOTIIOFR! ROFL! ROFL! ROFL!
Upcoming alley cats, reviews, touring logs, and a general congregation of
bike nerdity.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---