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.
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]>
> 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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---