Google Groups Home
Help | Sign in
Message from discussion delegating in jquery: problems
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Sudara  
View profile
 More options 29 Mar, 18:38
From: Sudara <markswilli...@gmail.com>
Date: Sat, 29 Mar 2008 11:38:27 -0700 (PDT)
Local: Sat 29 Mar 2008 18:38
Subject: Re: delegating in jquery: problems
Ok,

In the end, I needed to satisfy the case that the source element
matched and the parent of the source matches with the precedence going
first to the source element.

http://pastie.caboo.se/172487

Now, I'm sure this isn't the most beautiful way of going about things,
but it works, giving priority to matching against the source element
before checking parents.

In a way, allowing the source element to be a child opens a can of
worms: I'm willing to bet that someone out there (or me soon) is going
to need even more fine-grained precedence matching, wanting the
closest event to the source to fire ;)

Anywho, this is fun, thanks for listening.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google