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
lasitha  
View profile
 More options 26 Aug, 06:36
From: lasitha <lasitha.ranatu...@gmail.com>
Date: Tue, 26 Aug 2008 11:06:14 +0530
Local: Tues 26 Aug 2008 06:36
Subject: Re: delegating in jquery: problems
On Mar 27, 10:30 pm, Sudara <markswilli...@gmail.com> wrote:

> [...]

> Track = $.klass({
>   onclick: $.delegate({
>     '.track_link' : function(e){ this.toggleOptions(e) },
>     '.play_link' : function(e){ this.togglePlay(e) }
>   })

> [...]

> 3. For some odd reason, I can only match against 1 selector. [...]
> basically, whichever comes first.

Apologies for digging up an old post but i believe this bug (Item #3
in the OP) still exists in both Dan's and Sudara's branches.  In
Sudara's fork the bug only shows up if none of the selectors match the
event target itself _and_ the parent selector we want matched isn't
the first in the ruleset.

I've pastied patches against both Dan and Sudara's HEADs respectively:
http://pastie.org/260004
http://pastie.org/260009

Dan: belated congratulations on your firstborn!  Hope that's going
great and you still 'recommend this reproducing lark' :).

Cheers all.
lasitha.


    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